Commit c09bf379 authored by tongzifang's avatar tongzifang

fix

parent f9a130e6
images/ic_feedback_finish.png

6.46 KB | W: | H:

images/ic_feedback_finish.png

4.27 KB | W: | H:

images/ic_feedback_finish.png
images/ic_feedback_finish.png
images/ic_feedback_finish.png
images/ic_feedback_finish.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -21,14 +21,14 @@ class UserFeedBackString{
static String get feedback_ud_img=> "上传图片";
static String get feedback_content_none=> "请输入不少于5个字的描述";
static String get feedback_phone_none=> "请输入正确的联系方式";
static String get feedback_finish=> "你的反馈是对我们最大的支持\n谢谢反馈";
static String get feedback_finish=> "你的反馈是对我们最大的支持,谢谢你的反馈!";
static String get feedback_count=> "完成(";
static String get feedback_set=> "反馈设置";
static String get feedback_mobile_title=> "联系方式";
static String get feedback_mobile_hint=> "请输入手机号码";
static String get feedback_set_tag=> "截图反馈";
static String get feedback_set_content=> "开启时,APP截图时弹出反馈动画,可快速反馈";
static String get feedback_tip=> " 企迈团队将对你反馈的产品建议或功能异常及时回复和快速定位;组织内问题可直接联系总部 ";
static String get feedback_tip=> "企迈团队将对你反馈的产品建议或功能异常及时回复和快速定位;组织内问题可直接联系总部";
static String get feedback_mobile_input=> "请确认联系方式,若更换联系方式,请重新输入";
static String get feedback_mobile_err=> "非手机号,请填写你的联系方式";
}
\ No newline at end of file
......@@ -77,13 +77,12 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
right: 0,
top: 0,
child: Container(
height: 40,
height: 45,
color: const Color(0xFFFEF2EA),
padding: EdgeInsets.only(left: 12, right: 12),
alignment: Alignment.centerLeft,
child: TextScroll(
child: Text(
UserFeedBackString.feedback_tip,
velocity: const Velocity(pixelsPerSecond: Offset(30, 0)),
delayBefore: const Duration(milliseconds: 500),
style:
const TextStyle(color: Color(0xFFFB8633), fontSize: 12),
),
......@@ -92,7 +91,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
Positioned(
left: 0,
right: 0,
top: 40,
top: 45,
bottom: 110,
child: ListView(
physics: const BouncingScrollPhysics(),
......@@ -122,7 +121,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
borderRadius: BorderRadius.circular(8),
color: isFill
? CommonColor.colorMainGreen
: Color(0xffD8F0D2)),
: Color(0xffA8DE99)),
child: Center(
child: Text(
UserFeedBackString.feedback_sub,
......@@ -144,13 +143,16 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
if (widget.fromShot == 1) {
_getLastScreenShot();
}
_mobileController.text = SpUtil.getString("username") ?? "";
showClear = _mobileController.text.isNotEmpty;
}
_checkFill() {
isFill = _feedType != -1
&& selEnv != 0
&& _controller.text.isNotEmpty && _controller.text.length > 5
&& isMobileSel != -1;
isFill = _feedType != -1 &&
selEnv != 0 &&
_controller.text.isNotEmpty &&
_controller.text.length > 5 &&
isMobileSel != -1;
}
_feedbackType() {
......@@ -423,7 +425,9 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
minLines: 1,
controller: _controller,
onChanged: (str) {
_checkFill();
setState(() {
_checkFill();
});
},
style: TextStyle(
color: CommonColor.color33,
......@@ -598,7 +602,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
],
),
const SizedBox(
height: 10,
height: 12,
),
Row(
children: [
......@@ -803,7 +807,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
if (selEnv == 0) {
return QmToast.toast(UserFeedBackString.feedback_env_tip);
}
if (_controller.text.isEmpty || _controller.text.length < 5) {
if (_controller.text.isEmpty || _controller.text.length < 6) {
return QmToast.toast(UserFeedBackString.feedback_content_none);
}
if (isMobileSel == -1) {
......@@ -865,7 +869,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
padding: const EdgeInsets.only(top: 29, bottom: 29),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8)),
borderRadius: BorderRadius.circular(12)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
......@@ -875,19 +879,23 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
package: UserFeedBackString.current_name,
),
const SizedBox(
height: 16,
height: 20,
),
Text(
UserFeedBackString.feedback_finish,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 13,
decoration: TextDecoration.none,
color: CommonColor.color33,
Padding(
padding: EdgeInsets.only(left: 20, right: 20),
child: Text(
UserFeedBackString.feedback_finish,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 16,
decoration: TextDecoration.none,
height: 1.5,
color: CommonColor.color33,
),
),
),
const SizedBox(
height: 25,
height: 40,
),
GestureDetector(
onTap: () {
......@@ -901,17 +909,18 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
builder: (BuildContext context, int value,
Widget? child) {
return Container(
padding: const EdgeInsets.symmetric(
vertical: 10, horizontal: 35),
height: 40,
margin: EdgeInsets.only(left: 20, right: 20),
alignment: Alignment.center,
decoration: BoxDecoration(
color: CommonColor.colorEE,
borderRadius: BorderRadius.circular(4)),
color: CommonColor.colorMainGreen,
borderRadius: BorderRadius.circular(6)),
child: Text(
'${UserFeedBackString.feedback_count}$value)',
style: TextStyle(
decoration: TextDecoration.none,
fontSize: 16,
color: CommonColor.color33),
color: Colors.white),
),
);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment