提交 ba6746e9 authored 作者: maodou's avatar maodou

我的-意见反馈页面

上级 ad49261f
......@@ -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: (){
......
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
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) {},
),
);
}
}
......@@ -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';
......
......@@ -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()
)
),
]
);
......
......@@ -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 {
......
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论