feast_manage_home_page.dart
3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/route/navigator_util.dart';
import '../../../res/colors.dart';
import '../../../utils/screen_util.dart';
import '../../../utils/utils.dart';
import '../../../widgets/h_empty_view.dart';
import '../../../widgets/system_app_bar.dart';
/**
* 宴会管理
*/
class FeastManageHomePage extends StatefulWidget {
FeastManageHomePage({Key key}) : super(key: key);
@override
_FeastManageHomePageState createState() => _FeastManageHomePageState();
}
class _FeastManageHomePageState extends State<FeastManageHomePage> {
@override
void initState() {
super.initState();
Utils.changeStatusColor(color: MyColours.color_438E93);
}
Widget feastManegeItem(String title, {GestureTapCallback onTap}) {
return InkWell(
onTap: onTap,
child: Container(
height: h(48),
margin: EdgeInsets.only(top: w(12)),
decoration: BoxDecoration(
border: Border(
bottom:
BorderSide(width: w(0.5), color: MyColours.color_E7E7E7))),
child: Row(
children: [
Text(
title,
style: TextStyle(
fontSize: font(16), color: MyColours.color_E5000000),
),
Spacer(),
Text(
'修改/添加',
style: TextStyle(
fontSize: font(16), color: MyColours.color_66000000),
),
HEmptyView(22),
Image.asset(
"assets/arrow_right_new.png",
width: ScreenUtil().setWidth(9 * 2),
height: ScreenUtil().setWidth(16 * 2),
),
HEmptyView(48),
],
),
));
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: MyColours.color_ffffff,
appBar: SystemAppBar(
'宴会管理',
needWhite: true,
bgColor: MyColours.color_438E93,
titleColor: MyColours.color_F6F6F6,
onTap: () {
Navigator.pop(context);
},
),
body: SingleChildScrollView(
child: Padding(
padding: EdgeInsets.only(left: w(16)),
child: Column(
children: [
feastManegeItem('宴会类型', onTap: () {
NavigatorUtil.goFeasTypePage(context);
}),
feastManegeItem('宴会员工', onTap: () {
NavigatorUtil.goFeastPersonalPage(context);
}),
feastManegeItem('套餐管理', onTap: () {
NavigatorUtil.goFeastSetmealManagePage(context);
}),
feastManegeItem('酒水管理', onTap: () {
NavigatorUtil.goFeastWineManagePage(context);
}),
feastManegeItem('其他配置管理', onTap: () {
NavigatorUtil.goFeastOthersetManagePage(context);
}),
feastManegeItem('定金设置', onTap: () {
NavigatorUtil.goFeastDepositManagePage(context);
}),
],
),
),
));
}
}