Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qmsd-flutter-user-feedback
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PublicSource
qmsd-flutter-user-feedback
Commits
d1a3a732
Commit
d1a3a732
authored
Apr 11, 2023
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix _feedType
parent
13af57bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
user_feedback_strings.dart
lib/config/user_feedback_strings.dart
+4
-4
user_feedback_page.dart
lib/user_feedback_page.dart
+6
-6
No files found.
lib/config/user_feedback_strings.dart
View file @
d1a3a732
...
...
@@ -3,10 +3,10 @@ class UserFeedBackString{
static
String
get
title
=>
"意见反馈"
;
static
String
get
feedback_type
=>
"问题类型"
;
static
String
get
feedback_des
=>
"问题描述"
;
static
String
get
feedback_type_a
=>
"
产品建议
"
;
static
String
get
feedback_type_a_tip
=>
"
反馈产品及服务优化建议
"
;
static
String
get
feedback_type_b
=>
"
功能异常
"
;
static
String
get
feedback_type_b_tip
=>
"
报错、卡顿、错位等问题
"
;
static
String
get
feedback_type_a
=>
"
功能异常
"
;
static
String
get
feedback_type_a_tip
=>
"
报错、卡顿、错位等问题
"
;
static
String
get
feedback_type_b
=>
"
产品建议
"
;
static
String
get
feedback_type_b_tip
=>
"
反馈产品及服务优化建议
"
;
static
String
get
feedback_hint
=>
"说说你的建议或者问题,以便我们提供更好的服务(5个字以上)"
;
static
String
get
feedback_img
=>
"上传图片凭证(提供问题截图)"
;
static
String
get
feedback_sub
=>
"提交反馈"
;
...
...
lib/user_feedback_page.dart
View file @
d1a3a732
...
...
@@ -29,7 +29,7 @@ class UserFeedBackPage extends StatefulWidget {
}
class
_UserFeedBackPageState
extends
State
<
UserFeedBackPage
>
{
var
_feedType
=
1
;
//1=功能异常;2=产品建议
var
_feedType
=
2
;
//1=功能异常;2=产品建议
final
_controller
=
TextEditingController
();
List
<
XFile
>
imgFeed
=
[];
Timer
?
_timer
;
...
...
@@ -115,7 +115,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
),
Row
(
mainAxisSize:
MainAxisSize
.
max
,
children:
[
_getFeedTypeSin
(
1
),
_getFeedTypeSin
(
2
)],
children:
[
_getFeedTypeSin
(
2
),
_getFeedTypeSin
(
1
)],
)
],
),
...
...
@@ -140,9 +140,9 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
child:
Container
(
alignment:
Alignment
.
center
,
margin:
EdgeInsets
.
only
(
left:
feedType
==
2
?
6
:
0
,
right:
feedType
==
1
?
6
:
0
),
padding:
EdgeInsets
.
only
(
top:
8
),
left:
feedType
==
1
?
6
:
0
,
right:
feedType
==
2
?
6
:
0
),
padding:
const
EdgeInsets
.
only
(
top:
8
),
decoration:
BoxDecoration
(
color:
_feedType
==
feedType
?
CommonColor
.
colorMainGreen
...
...
@@ -171,7 +171,7 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
),
)),
Positioned
(
right:
feedType
==
1
?
6
:
0
,
right:
feedType
==
2
?
6
:
0
,
bottom:
0
,
child:
Visibility
(
visible:
_feedType
==
feedType
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment