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{ ...@@ -21,14 +21,14 @@ class UserFeedBackString{
static String get feedback_ud_img=> "上传图片"; static String get feedback_ud_img=> "上传图片";
static String get feedback_content_none=> "请输入不少于5个字的描述"; static String get feedback_content_none=> "请输入不少于5个字的描述";
static String get feedback_phone_none=> "请输入正确的联系方式"; 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_count=> "完成(";
static String get feedback_set=> "反馈设置"; static String get feedback_set=> "反馈设置";
static String get feedback_mobile_title=> "联系方式"; static String get feedback_mobile_title=> "联系方式";
static String get feedback_mobile_hint=> "请输入手机号码"; static String get feedback_mobile_hint=> "请输入手机号码";
static String get feedback_set_tag=> "截图反馈"; static String get feedback_set_tag=> "截图反馈";
static String get feedback_set_content=> "开启时,APP截图时弹出反馈动画,可快速反馈"; 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_input=> "请确认联系方式,若更换联系方式,请重新输入";
static String get feedback_mobile_err=> "非手机号,请填写你的联系方式"; static String get feedback_mobile_err=> "非手机号,请填写你的联系方式";
} }
\ No newline at end of file
...@@ -77,13 +77,12 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -77,13 +77,12 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
right: 0, right: 0,
top: 0, top: 0,
child: Container( child: Container(
height: 40, height: 45,
color: const Color(0xFFFEF2EA), color: const Color(0xFFFEF2EA),
padding: EdgeInsets.only(left: 12, right: 12),
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: TextScroll( child: Text(
UserFeedBackString.feedback_tip, UserFeedBackString.feedback_tip,
velocity: const Velocity(pixelsPerSecond: Offset(30, 0)),
delayBefore: const Duration(milliseconds: 500),
style: style:
const TextStyle(color: Color(0xFFFB8633), fontSize: 12), const TextStyle(color: Color(0xFFFB8633), fontSize: 12),
), ),
...@@ -92,7 +91,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -92,7 +91,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
Positioned( Positioned(
left: 0, left: 0,
right: 0, right: 0,
top: 40, top: 45,
bottom: 110, bottom: 110,
child: ListView( child: ListView(
physics: const BouncingScrollPhysics(), physics: const BouncingScrollPhysics(),
...@@ -122,7 +121,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -122,7 +121,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
color: isFill color: isFill
? CommonColor.colorMainGreen ? CommonColor.colorMainGreen
: Color(0xffD8F0D2)), : Color(0xffA8DE99)),
child: Center( child: Center(
child: Text( child: Text(
UserFeedBackString.feedback_sub, UserFeedBackString.feedback_sub,
...@@ -144,13 +143,16 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -144,13 +143,16 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
if (widget.fromShot == 1) { if (widget.fromShot == 1) {
_getLastScreenShot(); _getLastScreenShot();
} }
_mobileController.text = SpUtil.getString("username") ?? "";
showClear = _mobileController.text.isNotEmpty;
} }
_checkFill() { _checkFill() {
isFill = _feedType != -1 isFill = _feedType != -1 &&
&& selEnv != 0 selEnv != 0 &&
&& _controller.text.isNotEmpty && _controller.text.length > 5 _controller.text.isNotEmpty &&
&& isMobileSel != -1; _controller.text.length > 5 &&
isMobileSel != -1;
} }
_feedbackType() { _feedbackType() {
...@@ -423,7 +425,9 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -423,7 +425,9 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
minLines: 1, minLines: 1,
controller: _controller, controller: _controller,
onChanged: (str) { onChanged: (str) {
_checkFill(); setState(() {
_checkFill();
});
}, },
style: TextStyle( style: TextStyle(
color: CommonColor.color33, color: CommonColor.color33,
...@@ -598,7 +602,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -598,7 +602,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
], ],
), ),
const SizedBox( const SizedBox(
height: 10, height: 12,
), ),
Row( Row(
children: [ children: [
...@@ -803,7 +807,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -803,7 +807,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
if (selEnv == 0) { if (selEnv == 0) {
return QmToast.toast(UserFeedBackString.feedback_env_tip); 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); return QmToast.toast(UserFeedBackString.feedback_content_none);
} }
if (isMobileSel == -1) { if (isMobileSel == -1) {
...@@ -865,7 +869,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -865,7 +869,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
padding: const EdgeInsets.only(top: 29, bottom: 29), padding: const EdgeInsets.only(top: 29, bottom: 29),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.circular(8)), borderRadius: BorderRadius.circular(12)),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
...@@ -875,19 +879,23 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -875,19 +879,23 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
package: UserFeedBackString.current_name, package: UserFeedBackString.current_name,
), ),
const SizedBox( const SizedBox(
height: 16, height: 20,
), ),
Text( Padding(
UserFeedBackString.feedback_finish, padding: EdgeInsets.only(left: 20, right: 20),
textAlign: TextAlign.center, child: Text(
style: TextStyle( UserFeedBackString.feedback_finish,
fontSize: 13, textAlign: TextAlign.center,
decoration: TextDecoration.none, style: TextStyle(
color: CommonColor.color33, fontSize: 16,
decoration: TextDecoration.none,
height: 1.5,
color: CommonColor.color33,
),
), ),
), ),
const SizedBox( const SizedBox(
height: 25, height: 40,
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
...@@ -901,17 +909,18 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -901,17 +909,18 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
builder: (BuildContext context, int value, builder: (BuildContext context, int value,
Widget? child) { Widget? child) {
return Container( return Container(
padding: const EdgeInsets.symmetric( height: 40,
vertical: 10, horizontal: 35), margin: EdgeInsets.only(left: 20, right: 20),
alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
color: CommonColor.colorEE, color: CommonColor.colorMainGreen,
borderRadius: BorderRadius.circular(4)), borderRadius: BorderRadius.circular(6)),
child: Text( child: Text(
'${UserFeedBackString.feedback_count}$value)', '${UserFeedBackString.feedback_count}$value)',
style: TextStyle( style: TextStyle(
decoration: TextDecoration.none, decoration: TextDecoration.none,
fontSize: 16, 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