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
8c38171c
Commit
8c38171c
authored
Jun 09, 2023
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add setting
parent
828b184d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
1 deletion
+96
-1
user_feedback_strings.dart
lib/config/user_feedback_strings.dart
+3
-0
user_feedback_page.dart
lib/user_feedback_page.dart
+15
-1
user_feedback_setting.dart
lib/user_feedback_setting.dart
+78
-0
No files found.
lib/config/user_feedback_strings.dart
View file @
8c38171c
...
...
@@ -14,4 +14,7 @@ class UserFeedBackString{
static
String
get
feedback_content_none
=>
"请输入不少于5个字的描述"
;
static
String
get
feedback_finish
=>
"你的反馈是对我们最大的支持
\n
谢谢反馈"
;
static
String
get
feedback_count
=>
"完成("
;
static
String
get
feedback_set
=>
"反馈设置"
;
static
String
get
feedback_set_tag
=>
"截图反馈"
;
static
String
get
feedback_set_content
=>
"开启时,APP截图时弹出反馈动画,可快速反馈"
;
}
\ No newline at end of file
lib/user_feedback_page.dart
View file @
8c38171c
...
...
@@ -45,7 +45,21 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
child:
Scaffold
(
resizeToAvoidBottomInset:
true
,
backgroundColor:
CommonColor
.
colorF5
,
appBar:
PageUtils
.
navigator
(
context
,
title:
UserFeedBackString
.
title
),
appBar:
PageUtils
.
navigator
(
context
,
title:
UserFeedBackString
.
title
,
actions:
[
IconButton
(
icon:
Icon
(
Icons
.
settings_outlined
),
onPressed:
()
{
BoostNavigator
.
instance
.
push
(
"user_feedback_setting"
,
//required
withContainer:
false
,
arguments:
{},
opaque:
true
,
//optional,default value is true
);
},
),
]),
body:
Stack
(
children:
[
Positioned
(
...
...
lib/user_feedback_setting.dart
0 → 100644
View file @
8c38171c
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:base_data_channel/config/common_colors.dart'
;
import
'package:base_data_channel/utils/page_utils.dart'
;
import
'config/user_feedback_strings.dart'
;
import
'package:flutter_boost/flutter_boost.dart'
;
import
'package:sp_util/sp_util.dart'
;
class
UserFeedbackSetting
extends
StatefulWidget
{
UserFeedbackSetting
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
UserFeedbackSetting
>
createState
()
=>
_UserFeedbackSettingState
();
}
class
_UserFeedbackSettingState
extends
State
<
UserFeedbackSetting
>
{
int
openScreenshot
=
0
;
@override
void
initState
()
{
super
.
initState
();
openScreenshot
=
SpUtil
.
getInt
(
"openScreenshot"
)
??
0
;
}
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
resizeToAvoidBottomInset:
true
,
backgroundColor:
CommonColor
.
colorF5
,
appBar:
PageUtils
.
navigator
(
context
,
title:
UserFeedBackString
.
feedback_set
),
body:
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
white
,
borderRadius:
BorderRadius
.
circular
(
12
)),
padding:
EdgeInsets
.
only
(
left:
12
,
right:
12
,
bottom:
12
,
top:
6
),
margin:
EdgeInsets
.
all
(
12
),
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Row
(
children:
[
Text
(
UserFeedBackString
.
feedback_set_tag
,
style:
TextStyle
(
color:
CommonColor
.
color33
,
fontSize:
16
,
fontWeight:
FontWeight
.
w500
),
),
Spacer
(),
CupertinoSwitch
(
value:
openScreenshot
==
1
,
onChanged:
(
value
)
{
setState
(()
{
openScreenshot
=
value
?
1
:
0
;
BoostChannel
.
instance
.
sendEventToNative
(
"publicMonitoring"
,
{
"method"
:
"screenshotSetting"
,
"openScreenshot"
:
openScreenshot
,
});
});
},
),
],
),
Text
(
UserFeedBackString
.
feedback_set_content
,
style:
TextStyle
(
color:
CommonColor
.
color99
,
fontSize:
13
),
)
],
),
),
);
}
}
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