Commit d1a3a732 authored by tongzifang's avatar tongzifang

fix _feedType

parent 13af57bd
...@@ -3,10 +3,10 @@ class UserFeedBackString{ ...@@ -3,10 +3,10 @@ class UserFeedBackString{
static String get title => "意见反馈"; static String get title => "意见反馈";
static String get feedback_type => "问题类型"; static String get feedback_type => "问题类型";
static String get feedback_des => "问题描述"; static String get feedback_des => "问题描述";
static String get feedback_type_a => "产品建议"; static String get feedback_type_a => "功能异常";
static String get feedback_type_a_tip => "反馈产品及服务优化建议"; static String get feedback_type_a_tip => "报错、卡顿、错位等问题";
static String get feedback_type_b => "功能异常"; static String get feedback_type_b => "产品建议";
static String get feedback_type_b_tip => "报错、卡顿、错位等问题"; static String get feedback_type_b_tip => "反馈产品及服务优化建议";
static String get feedback_hint => "说说你的建议或者问题,以便我们提供更好的服务(5个字以上)"; static String get feedback_hint => "说说你的建议或者问题,以便我们提供更好的服务(5个字以上)";
static String get feedback_img => "上传图片凭证(提供问题截图)"; static String get feedback_img => "上传图片凭证(提供问题截图)";
static String get feedback_sub => "提交反馈"; static String get feedback_sub => "提交反馈";
......
...@@ -29,7 +29,7 @@ class UserFeedBackPage extends StatefulWidget { ...@@ -29,7 +29,7 @@ class UserFeedBackPage extends StatefulWidget {
} }
class _UserFeedBackPageState extends State<UserFeedBackPage> { class _UserFeedBackPageState extends State<UserFeedBackPage> {
var _feedType = 1; //1=功能异常;2=产品建议 var _feedType = 2; //1=功能异常;2=产品建议
final _controller = TextEditingController(); final _controller = TextEditingController();
List<XFile> imgFeed = []; List<XFile> imgFeed = [];
Timer? _timer; Timer? _timer;
...@@ -115,7 +115,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -115,7 +115,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
), ),
Row( Row(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
children: [_getFeedTypeSin(1), _getFeedTypeSin(2)], children: [_getFeedTypeSin(2), _getFeedTypeSin(1)],
) )
], ],
), ),
...@@ -140,9 +140,9 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -140,9 +140,9 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: feedType == 2 ? 6 : 0, left: feedType == 1 ? 6 : 0,
right: feedType == 1 ? 6 : 0), right: feedType == 2 ? 6 : 0),
padding: EdgeInsets.only(top: 8), padding: const EdgeInsets.only(top: 8),
decoration: BoxDecoration( decoration: BoxDecoration(
color: _feedType == feedType color: _feedType == feedType
? CommonColor.colorMainGreen ? CommonColor.colorMainGreen
...@@ -171,7 +171,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -171,7 +171,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
), ),
)), )),
Positioned( Positioned(
right: feedType == 1 ? 6 : 0, right: feedType == 2 ? 6 : 0,
bottom: 0, bottom: 0,
child: Visibility( child: Visibility(
visible: _feedType == feedType, visible: _feedType == feedType,
......
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