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
c09bf379
Commit
c09bf379
authored
Apr 03, 2024
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f9a130e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
30 deletions
+39
-30
ic_feedback_finish.png
images/ic_feedback_finish.png
+0
-0
user_feedback_strings.dart
lib/config/user_feedback_strings.dart
+2
-2
user_feedback_page.dart
lib/user_feedback_page.dart
+37
-28
No files found.
images/ic_feedback_finish.png
View replaced file @
f9a130e6
View file @
c09bf379
6.46 KB
|
W:
|
H:
4.27 KB
|
W:
|
H:
2-up
Swipe
Onion skin
lib/config/user_feedback_strings.dart
View file @
c09bf379
...
...
@@ -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
lib/user_feedback_page.dart
View file @
c09bf379
...
...
@@ -77,13 +77,12 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
right:
0
,
top:
0
,
child:
Container
(
height:
4
0
,
height:
4
5
,
color:
const
Color
(
0xFFFEF2EA
),
padding:
EdgeInsets
.
only
(
left:
12
,
right:
12
),
alignment:
Alignment
.
centerLeft
,
child:
Text
Scroll
(
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:
4
0
,
top:
4
5
,
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
(
0xff
D8F0D2
)),
:
Color
(
0xff
A8DE99
)),
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:
1
0
,
height:
1
2
,
),
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
.
color
EE
,
borderRadius:
BorderRadius
.
circular
(
4
)),
color:
CommonColor
.
color
MainGreen
,
borderRadius:
BorderRadius
.
circular
(
6
)),
child:
Text
(
'
${UserFeedBackString.feedback_count}$value
)'
,
style:
TextStyle
(
decoration:
TextDecoration
.
none
,
fontSize:
16
,
color:
Co
mmonColor
.
color33
),
color:
Co
lors
.
white
),
),
);
},
...
...
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