Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
ba6746e9
提交
ba6746e9
authored
1月 18, 2024
作者:
maodou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
我的-意见反馈页面
上级
ad49261f
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
127 行增加
和
2 行删除
+127
-2
view.dart
lib/pages/mine/view.dart
+6
-1
index.dart
lib/pages/user_feedback/index.dart
+10
-0
view.dart
lib/pages/user_feedback/view.dart
+96
-0
index.dart
lib/routes/index.dart
+1
-0
routes.dart
lib/routes/routes.dart
+12
-1
styles.dart
lib/utils/styles.dart
+2
-0
pubspec.lock
pubspec.lock
+0
-0
没有找到文件。
lib/pages/mine/view.dart
浏览文件 @
ba6746e9
...
...
@@ -111,7 +111,12 @@ class _MinePageState extends State<MinePage> {
},
child:
_buildItem
(
'账户安全'
)
),
Container
(
color:
Colours
.
cLine
,
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
15
),
height:
1
,),
_buildItem
(
'意见反馈'
),
// _buildItem('意见反馈'),
GestureDetector
(
onTap:
(){
context
.
pushNamed
(
Routes
.
feedback
);
},
child:
_buildItem
(
'意见反馈'
)
),
Container
(
color:
Colours
.
cLine
,
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
15
),
height:
1
,),
GestureDetector
(
onTap:
(){
...
...
lib/pages/user_feedback/index.dart
0 → 100644
浏览文件 @
ba6746e9
library
user_feedback
;
import
'package:flutter/material.dart'
;
import
'package:flutter_book/theme.dart'
;
import
'package:flutter_book/utils/index.dart'
;
import
'../../widgets/index.dart'
;
part
'view.dart'
;
\ No newline at end of file
lib/pages/user_feedback/view.dart
0 → 100644
浏览文件 @
ba6746e9
part of
user_feedback
;
class
UserFeedbackPage
extends
StatefulWidget
{
const
UserFeedbackPage
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
UserFeedbackPage
>
createState
()
=>
_UserFeedbackPageState
();
}
class
_UserFeedbackPageState
extends
State
<
UserFeedbackPage
>
{
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
const
Text
(
'意见反馈'
),
centerTitle:
true
,
),
body:
Container
(
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
AppTheme
.
margin
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
color:
Colors
.
white
,
),
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
children:
[
Container
(
alignment:
Alignment
.
centerLeft
,
padding:
const
EdgeInsets
.
only
(
left:
10
,
top:
16.5
),
child:
const
Text
.
rich
(
TextSpan
(
children:
[
TextSpan
(
text:
"*"
,
style:
TextStyle
(
fontSize:
14
,
color:
Colours
.
cAB1941
)),
TextSpan
(
text:
"问题描述或建议"
,
style:
TextStyle
(
fontSize:
14
,
color:
Colours
.
c3
,
fontWeight:
FontWeight
.
bold
)),
])),
),
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
6.5
,
bottom:
10
),
child:
const
CustomInput
(
maxLines:
5
,
hintText:
'请描述你的问题,我们会尽快处理并回复'
,
),
),
// _buildTextField(context),
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
35
,
bottom:
20
),
width:
double
.
infinity
,
child:
ElevatedButton
(
onPressed:
()
{
print
(
"提交反馈"
);
},
style:
ButtonStyle
(
backgroundColor:
MaterialStateProperty
.
all
(
Colours
.
cAB1941
),
shape:
MaterialStateProperty
.
all
(
BeveledRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
2
))),
//圆角弧度
),
child:
const
Text
(
"提交反馈"
,
style:
TextStyle
(
fontSize:
14
,
color:
Colours
.
cFF
),
)),
),
],
),
));
}
Widget
_buildTextField
(
BuildContext
context
)
{
return
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
30
),
width:
double
.
infinity
,
child:
TextField
(
style:
const
TextStyle
(
color:
Colors
.
blue
,
height:
3
,),
minLines:
5
,
maxLines:
5
,
cursorColor:
Colours
.
c3
,
cursorRadius:
const
Radius
.
circular
(
3
),
cursorWidth:
1
,
showCursor:
true
,
decoration:
const
InputDecoration
(
contentPadding:
EdgeInsets
.
all
(
10
),
hintText:
"请描述你的问题,我们会尽快处理并回复"
,
border:
OutlineInputBorder
(),
),
onChanged:
(
v
)
{},
),
);
}
}
lib/routes/index.dart
浏览文件 @
ba6746e9
...
...
@@ -21,6 +21,7 @@ import 'package:flutter_book/pages/study_report/index.dart';
import
'package:flutter_book/pages/user_coin/index.dart'
;
import
'package:flutter_book/pages/user_coupon/index.dart'
;
import
'package:flutter_book/pages/user_discuss/index.dart'
;
import
'package:flutter_book/pages/user_feedback/index.dart'
;
import
'package:flutter_book/pages/user_info/index.dart'
;
import
'package:flutter_book/pages/user_love/index.dart'
;
import
'package:flutter_book/pages/user_msg/index.dart'
;
...
...
lib/routes/routes.dart
浏览文件 @
ba6746e9
...
...
@@ -86,6 +86,8 @@ abstract class Routes {
static
const
changePhone
=
'change_change'
;
// 修改密码
static
const
changePwd
=
'change_pwd'
;
// 意见反馈
static
const
feedback
=
'feedback'
;
...
...
@@ -400,7 +402,16 @@ abstract class Routes {
key:
state
.
pageKey
,
child:
ChangePwdPage
(
type:
state
.
uri
.
queryParameters
[
'type'
].
toString
())
)
)
),
GoRoute
(
path:
'/
$feedback
'
,
name:
feedback
,
pageBuilder:
(
context
,
state
)
=>
CupertinoPage
(
name:
state
.
uri
.
toString
(),
key:
state
.
pageKey
,
child:
const
UserFeedbackPage
()
)
),
]
);
...
...
lib/utils/styles.dart
浏览文件 @
ba6746e9
...
...
@@ -29,10 +29,12 @@ class Colours {
static
const
cE7
=
Color
(
0xFFE7E7E7
);
static
const
cEF
=
Color
(
0xFFEFEFEF
);
static
const
cF0
=
Color
(
0xFFF0F0F0
);
static
const
cFF
=
Color
(
0xFFFFFFFF
);
static
const
cF2
=
Color
(
0xFFF2F2F2
);
static
const
cF4
=
Color
(
0xFFF4F4F4
);
static
const
cF9
=
Color
(
0xFFF9F9F9
);
static
const
cC7
=
Color
(
0xFFC7C7C7
);
static
const
cAB1941
=
Color
(
0xB3AB1941
);
}
class
Gaps
{
...
...
pubspec.lock
浏览文件 @
ba6746e9
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论