add feedback page

hmxc
小赖 4 years ago
parent f251294677
commit 8b828ada08

@ -1,13 +1,17 @@
import 'package:flutter/material.dart';
class AppStyle {
//
static const primaryColor =Color(0xFFFDCF12);
static const minorColor=Color(0xFFFFDF5D);
static const primaryColor = Color(0xFFFDCF12);
static const minorColor = Color(0xFFFFDF5D);
//
///
static const primaryTextColor=Color(0xFF333333);
static const primaryTextColor = Color(0xFF333333);
///
static const minorTextColor=Color(0xFF999999);
static const minorTextColor = Color(0xFF999999);
}
///
static const backgroundColor = Color(0xFFF9F9F9);
}

@ -0,0 +1,64 @@
import 'package:aku_community_manager/style/app_style.dart';
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_ui/common_widgets/aku_material_button.dart';
import 'package:flutter/material.dart';
import 'package:aku_community_manager/tools/screen_tool.dart';
class SettingFeedBackPage extends StatefulWidget {
SettingFeedBackPage({Key key}) : super(key: key);
@override
_SettingFeedBackPageState createState() => _SettingFeedBackPageState();
}
class _SettingFeedBackPageState extends State<SettingFeedBackPage> {
@override
Widget build(BuildContext context) {
return AkuScaffold(
title: '意见反馈',
backgroundColor: Colors.white,
body: ListView(
children: [
Container(
height: 20.w,
color: AppStyle.backgroundColor,
),
Container(
margin: EdgeInsets.symmetric(
vertical: 24.w,
horizontal: 32.w,
),
padding: EdgeInsets.all(24.w),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
TextField(
minLines: 5,
maxLines: 99,
decoration: InputDecoration(
border: InputBorder.none,
contentPadding: EdgeInsets.zero,
hintText: '请输入你的意见和建议',
hintStyle: TextStyle(
color: Color(0xFF999999),
fontSize: 28.sp,
),
),
),
],
),
decoration: BoxDecoration(
color: AppStyle.backgroundColor,
borderRadius: BorderRadius.circular(16.w),
),
),
],
),
bottom: AkuMaterialButton(
onPressed: () {},
child: Text('提交'),
color: AppStyle.minorColor,
),
);
}
}

@ -1,8 +1,11 @@
import 'package:aku_community_manager/ui/settings/setting_feedback_page.dart';
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_community_manager/ui/widgets/common/aku_tile.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:aku_community_manager/tools/screen_tool.dart';
import 'package:get/get.dart';
class SettingsPage extends StatefulWidget {
SettingsPage({Key key}) : super(key: key);
@ -38,11 +41,13 @@ class _SettingsPageState extends State<SettingsPage> {
AkuTile(
title: Text('意见反馈'),
arrow: true,
onTap: () => Get.to(SettingFeedBackPage()),
),
Divider(height: 1.w),
AkuTile(
title: Text('清理缓存'),
arrow: true,
onTap: () => BotToast.showText(text: '缓存清理完成'),
),
],
),

@ -35,6 +35,8 @@ class AkuScaffold extends StatefulWidget {
///body
final Widget body;
final Widget bottom;
///
///
///`0xFFF9F9F9`
@ -48,6 +50,7 @@ class AkuScaffold extends StatefulWidget {
this.brightness = Brightness.light,
this.body,
this.backgroundColor = const Color(0XFFF9F9F9),
this.bottom,
}) : super(key: key);
@override
@ -76,6 +79,7 @@ class _AkuScaffoldState extends State<AkuScaffold> {
),
),
body: widget.body,
bottomNavigationBar: widget.bottom,
);
}
}

Loading…
Cancel
Save