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
1490229d
Commit
1490229d
authored
Apr 06, 2023
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feed page
parent
85db5183
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
98 additions
and
9 deletions
+98
-9
pubspec.lock
example/pubspec.lock
+3
-5
user_feedback_strings.dart
lib/config/user_feedback_strings.dart
+8
-0
user_feedback_page.dart
lib/user_feedback_page.dart
+83
-1
pubspec.yaml
pubspec.yaml
+4
-3
No files found.
example/pubspec.lock
View file @
1490229d
...
@@ -36,11 +36,9 @@ packages:
...
@@ -36,11 +36,9 @@ packages:
base_data_channel:
base_data_channel:
dependency: transitive
dependency: transitive
description:
description:
path: "."
path: "/Users/tongzi/AndroidStudioProjects/base_data_channel"
ref: "0.0.6"
relative: false
resolved-ref: "3e244491646d7e4df18a32465477f95b88ddbdfd"
source: path
url: "git@git.zmcms.cn:fht/base_data_channel.git"
source: git
version: "0.0.1"
version: "0.0.1"
boolean_selector:
boolean_selector:
dependency: transitive
dependency: transitive
...
...
lib/config/user_feedback_strings.dart
0 → 100644
View file @
1490229d
class
UserFeedBackString
{
static
String
get
title
=>
"意见反馈"
;
static
String
get
feedback_type
=>
"问题类型"
;
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
=>
"报错、卡顿、错位等问题"
;
}
\ No newline at end of file
lib/user_feedback_page.dart
View file @
1490229d
import
'package:base_data_channel/config/common_colors.dart'
;
import
'package:base_data_channel/utils/page_utils.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'config/user_feedback_strings.dart'
;
class
UserFeedBackPage
extends
StatefulWidget
{
class
UserFeedBackPage
extends
StatefulWidget
{
const
UserFeedBackPage
({
Key
?
key
})
:
super
(
key:
key
);
const
UserFeedBackPage
({
Key
?
key
})
:
super
(
key:
key
);
...
@@ -8,10 +12,88 @@ class UserFeedBackPage extends StatefulWidget {
...
@@ -8,10 +12,88 @@ class UserFeedBackPage extends StatefulWidget {
}
}
class
_UserFeedBackPageState
extends
State
<
UserFeedBackPage
>
{
class
_UserFeedBackPageState
extends
State
<
UserFeedBackPage
>
{
var
_feedType
=
-
1
;
//1=功能异常;2=产品建议
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
return
Scaffold
(
body:
Center
(
child:
Text
(
"ffff"
),),
backgroundColor:
CommonColor
.
colorF5
,
appBar:
PageUtils
.
navigator
(
context
,
title:
UserFeedBackString
.
title
),
body:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
stretch
,
children:
[
_feedbackType
()],
),
);
);
}
}
_feedbackType
()
{
return
Container
(
margin:
const
EdgeInsets
.
all
(
12
),
padding:
const
EdgeInsets
.
all
(
12
),
decoration:
BoxDecoration
(
color:
Colors
.
white
,
borderRadius:
BorderRadius
.
circular
(
8
)),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
stretch
,
children:
[
Text
(
UserFeedBackString
.
feedback_type
,
style:
TextStyle
(
color:
CommonColor
.
color33
,
fontSize:
17
,
),
),
Row
(
mainAxisSize:
MainAxisSize
.
max
,
children:
[
_getFeedTypeSin
(
1
),
_getFeedTypeSin
(
2
)],
)
],
),
);
}
_getFeedTypeSin
(
int
feedType
)
{
return
Expanded
(
child:
GestureDetector
(
onTap:
()
=>
setState
(()
{
_feedType
=
feedType
;
}),
child:
Container
(
margin:
EdgeInsets
.
only
(
top:
10
,
left:
feedType
==
2
?
6
:
0
,
right:
feedType
==
1
?
6
:
0
),
padding:
const
EdgeInsets
.
all
(
10
),
decoration:
BoxDecoration
(
color:
_feedType
==
feedType
?
CommonColor
.
colorMainGreen
:
CommonColor
.
colorF8
,
borderRadius:
BorderRadius
.
circular
(
4
)),
child:
Text
.
rich
(
TextSpan
(
children:
[
TextSpan
(
text:
feedType
==
1
?
UserFeedBackString
.
feedback_type_a
:
UserFeedBackString
.
feedback_type_b
,
style:
TextStyle
(
color:
CommonColor
.
color33
,
fontSize:
15
,
fontWeight:
FontWeight
.
w600
)),
const
TextSpan
(
text:
"
\n
"
,
),
TextSpan
(
text:
feedType
==
1
?
UserFeedBackString
.
feedback_type_a_tip
:
UserFeedBackString
.
feedback_type_b_tip
,
style:
TextStyle
(
color:
CommonColor
.
colorBlack
,
fontSize:
12
,
fontWeight:
FontWeight
.
w500
))
]),
textAlign:
TextAlign
.
center
,
overflow:
TextOverflow
.
ellipsis
,
),
),
));
}
}
}
pubspec.yaml
View file @
1490229d
...
@@ -14,9 +14,10 @@ dependencies:
...
@@ -14,9 +14,10 @@ dependencies:
sdk
:
flutter
sdk
:
flutter
plugin_platform_interface
:
^2.0.2
plugin_platform_interface
:
^2.0.2
base_data_channel
:
base_data_channel
:
git
:
path
:
/Users/tongzi/AndroidStudioProjects/base_data_channel
url
:
git@git.zmcms.cn:fht/base_data_channel.git
# git:
ref
:
0.0.6
# url: git@git.zmcms.cn:fht/base_data_channel.git
# ref: master
dev_dependencies
:
dev_dependencies
:
flutter_test
:
flutter_test
:
...
...
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