|
1
|
-import 'package:flutter/material.dart';
|
1
|
+// import 'package:flutter/material.dart';
|
|
2
|
|
2
|
|
|
3
|
-import 'package:flutter_screenutil/screenutil.dart';
|
|
|
|
4
|
-import 'package:one_key/constant/state.dart';
|
3
|
+// import 'package:flutter_screenutil/screenutil.dart';
|
|
|
|
4
|
+// import 'package:one_key/constant/state.dart';
|
|
5
|
|
5
|
|
|
6
|
-import 'package:one_key/pages/my/customer_type/contant_list_page.dart';
|
6
|
+// import 'package:one_key/pages/my/customer_type/contant_list_page.dart';
|
|
7
|
|
7
|
|
|
8
|
-import 'package:one_key/provider/customer_provider.dart';
|
|
|
|
9
|
-import 'package:one_key/provider/user_model.dart';
|
|
|
|
10
|
-import 'package:one_key/res/colors.dart';
|
|
|
|
11
|
-import 'package:one_key/route/navigator_util.dart';
|
8
|
+// import 'package:one_key/provider/customer_provider.dart';
|
|
|
|
9
|
+// import 'package:one_key/provider/user_model.dart';
|
|
|
|
10
|
+// import 'package:one_key/res/colors.dart';
|
|
|
|
11
|
+// import 'package:one_key/route/navigator_util.dart';
|
|
12
|
|
12
|
|
|
13
|
-import 'package:one_key/utils/event_bus.dart';
|
|
|
|
14
|
-import 'package:one_key/utils/utils.dart';
|
|
|
|
15
|
-import 'package:one_key/widgets/common_button_flat.dart';
|
13
|
+// import 'package:one_key/utils/event_bus.dart';
|
|
|
|
14
|
+// import 'package:one_key/utils/utils.dart';
|
|
|
|
15
|
+// import 'package:one_key/widgets/common_button_flat.dart';
|
|
16
|
|
16
|
|
|
17
|
-import 'package:one_key/widgets/custom_tab_indicator.dart';
|
|
|
|
18
|
-import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
19
|
-import 'package:one_key/widgets/page_exception.dart';
|
17
|
+// import 'package:one_key/widgets/custom_tab_indicator.dart';
|
|
|
|
18
|
+// import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
19
|
+// import 'package:one_key/widgets/page_exception.dart';
|
|
20
|
|
20
|
|
|
21
|
-import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
22
|
-import 'package:one_key/widgets/v_empty_view.dart';
|
21
|
+// import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
22
|
+// import 'package:one_key/widgets/v_empty_view.dart';
|
|
23
|
|
23
|
|
|
24
|
-import 'package:provider/provider.dart';
|
24
|
+// import 'package:provider/provider.dart';
|
|
25
|
|
25
|
|
|
26
|
-typedef ClickCallback = void Function(dynamic value);
|
26
|
+// typedef ClickCallback = void Function(dynamic value);
|
|
27
|
|
27
|
|
|
28
|
-class CustomerListPage extends StatefulWidget {
|
|
|
|
29
|
- @override
|
|
|
|
30
|
- _CustomerListPageState createState() => _CustomerListPageState();
|
|
|
|
31
|
-}
|
28
|
+// class CustomerListPage extends StatefulWidget {
|
|
|
|
29
|
+// @override
|
|
|
|
30
|
+// _CustomerListPageState createState() => _CustomerListPageState();
|
|
|
|
31
|
+// }
|
|
32
|
|
32
|
|
|
33
|
-class _CustomerListPageState extends State<CustomerListPage>
|
|
|
|
34
|
- with TickerProviderStateMixin {
|
|
|
|
35
|
- List _tabBarTitle;
|
|
|
|
36
|
- TabController tabController;
|
33
|
+// class _CustomerListPageState extends State<CustomerListPage>
|
|
|
|
34
|
+// with TickerProviderStateMixin {
|
|
|
|
35
|
+// List _tabBarTitle;
|
|
|
|
36
|
+// TabController tabController;
|
|
37
|
|
37
|
|
|
38
|
- CustomerProvider customerProvider;
|
|
|
|
39
|
- bool showFilter = false;
|
|
|
|
40
|
- ScrollController _scrollCrl = ScrollController();
|
|
|
|
41
|
- int dropValue = 0;
|
|
|
|
42
|
- bool showDrop = true;
|
|
|
|
43
|
- List<String> timeTilte = ['大于', '等于', '小于'];
|
38
|
+// CustomerProvider customerProvider;
|
|
|
|
39
|
+// bool showFilter = false;
|
|
|
|
40
|
+// ScrollController _scrollCrl = ScrollController();
|
|
|
|
41
|
+// int dropValue = 0;
|
|
|
|
42
|
+// bool showDrop = true;
|
|
|
|
43
|
+// List<String> timeTilte = ['大于', '等于', '小于'];
|
|
44
|
|
44
|
|
|
45
|
- @override
|
|
|
|
46
|
- void initState() {
|
|
|
|
47
|
- _tabBarTitle = ['全部', '活跃', '沉睡', '流失'];
|
|
|
|
48
|
- // timeTilte = ['大于', '等于', '小于'];
|
|
|
|
49
|
- super.initState();
|
|
|
|
50
|
- tabController = TabController(length: 4, vsync: this);
|
|
|
|
51
|
- WidgetsBinding.instance.addPostFrameCallback((_) async {
|
|
|
|
52
|
- _getContantData();
|
|
|
|
53
|
- });
|
|
|
|
54
|
- }
|
45
|
+// @override
|
|
|
|
46
|
+// void initState() {
|
|
|
|
47
|
+// _tabBarTitle = ['全部', '活跃', '沉睡', '流失'];
|
|
|
|
48
|
+// // timeTilte = ['大于', '等于', '小于'];
|
|
|
|
49
|
+// super.initState();
|
|
|
|
50
|
+// tabController = TabController(length: 4, vsync: this);
|
|
|
|
51
|
+// WidgetsBinding.instance.addPostFrameCallback((_) async {
|
|
|
|
52
|
+// _getContantData();
|
|
|
|
53
|
+// });
|
|
|
|
54
|
+// }
|
|
55
|
|
55
|
|
|
56
|
- _getContantData() async {
|
|
|
|
57
|
- Map<String, String> params = {
|
|
|
|
58
|
- "sid": Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
59
|
- };
|
|
|
|
60
|
- await customerProvider.getUserHistorys(context, params);
|
|
|
|
61
|
- await customerProvider.searchData(customerProvider.controller.text);
|
|
|
|
62
|
- }
|
56
|
+// _getContantData() async {
|
|
|
|
57
|
+// Map<String, String> params = {
|
|
|
|
58
|
+// "sid": Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
59
|
+// };
|
|
|
|
60
|
+// await customerProvider.getUserHistorys(context, params);
|
|
|
|
61
|
+// await customerProvider.searchData(customerProvider.controller.text);
|
|
|
|
62
|
+// }
|
|
63
|
|
63
|
|
|
64
|
- ///选中的联系人widget
|
|
|
|
65
|
- Widget _selectContantWidget() {
|
|
|
|
66
|
- return Container(
|
|
|
|
67
|
- // constraints: BoxConstraints(maxHeight: ScreenUtil().setWidth(760)),
|
|
|
|
68
|
- // height: ScreenUtil().setWidth(400),
|
|
|
|
69
|
- width: double.infinity,
|
|
|
|
70
|
- padding: EdgeInsets.all(ScreenUtil().setWidth(40)),
|
|
|
|
71
|
- decoration: BoxDecoration(
|
|
|
|
72
|
- color: MyColours.color_ffffff,
|
|
|
|
73
|
- boxShadow: [
|
|
|
|
74
|
- BoxShadow(
|
|
|
|
75
|
- color: MyColours.color_333333,
|
|
|
|
76
|
- blurRadius: ScreenUtil().setWidth(14))
|
|
|
|
77
|
- ],
|
|
|
|
78
|
- borderRadius: BorderRadius.only(
|
|
|
|
79
|
- topLeft: Radius.circular(ScreenUtil().setWidth(30)),
|
|
|
|
80
|
- topRight: Radius.circular(ScreenUtil().setWidth(30)),
|
|
|
|
81
|
- )),
|
|
|
|
82
|
- child: Row(
|
|
|
|
83
|
- children: [
|
|
|
|
84
|
- Image.asset(Utils.getImgPath('select'),
|
|
|
|
85
|
- width: ScreenUtil().setWidth(30)),
|
|
|
|
86
|
- HEmptyView(10),
|
|
|
|
87
|
- Text(
|
|
|
|
88
|
- '全选',
|
|
|
|
89
|
- style: TextStyle(
|
|
|
|
90
|
- fontSize: ScreenUtil().setSp(26),
|
|
|
|
91
|
- color: MyColours.color_333333),
|
|
|
|
92
|
- ),
|
|
|
|
93
|
- HEmptyView(20),
|
|
|
|
94
|
- Expanded(
|
|
|
|
95
|
- child: InkWell(
|
|
|
|
96
|
- onTap: () {
|
|
|
|
97
|
- NavigatorUtil.goMakeMarkingPage(context);
|
|
|
|
98
|
- },
|
|
|
|
99
|
- child: Container(
|
|
|
|
100
|
- alignment: Alignment.center,
|
|
|
|
101
|
- padding: EdgeInsets.all(ScreenUtil().setWidth(20)),
|
|
|
|
102
|
- decoration: BoxDecoration(
|
|
|
|
103
|
- borderRadius:
|
|
|
|
104
|
- BorderRadius.circular(ScreenUtil().setWidth(40)),
|
|
|
|
105
|
- color: MyColours.color_199095),
|
|
|
|
106
|
- child: Text(
|
|
|
|
107
|
- '已选[全部]10000位顾客,下发营销任务',
|
|
|
|
108
|
- overflow: TextOverflow.ellipsis,
|
|
|
|
109
|
- maxLines: 1,
|
|
|
|
110
|
- style: TextStyle(
|
|
|
|
111
|
- fontSize: ScreenUtil().setSp(28),
|
|
|
|
112
|
- color: MyColours.color_ffffff,
|
|
|
|
113
|
- ),
|
|
|
|
114
|
- )),
|
|
|
|
115
|
- )),
|
|
|
|
116
|
- // Expanded(
|
|
|
|
117
|
- // child: RoundButton(
|
|
|
|
118
|
- // // width: ScreenUtil().setWidth(600),
|
|
|
|
119
|
- // height: ScreenUtil().setWidth(80),
|
|
|
|
120
|
- // radius: ScreenUtil().setWidth(40),
|
|
|
|
121
|
- // text: '已选 [全部] 80位顾客,下发营销任务frfrfrfrfrffrfrfr',
|
|
|
|
122
|
- // fontSize: 28,
|
|
|
|
123
|
- // textColor: MyColours.color_ffffff,
|
|
|
|
124
|
- // gradientStart: MyColours.color_199095,
|
|
|
|
125
|
- // gradientEnd: MyColours.color_199095,
|
|
|
|
126
|
- // onPressed: () {},
|
|
|
|
127
|
- // ))
|
|
|
|
128
|
- ],
|
|
|
|
129
|
- ),
|
|
|
|
130
|
- );
|
|
|
|
131
|
- }
|
64
|
+// ///选中的联系人widget
|
|
|
|
65
|
+// Widget _selectContantWidget() {
|
|
|
|
66
|
+// return Container(
|
|
|
|
67
|
+// // constraints: BoxConstraints(maxHeight: ScreenUtil().setWidth(760)),
|
|
|
|
68
|
+// // height: ScreenUtil().setWidth(400),
|
|
|
|
69
|
+// width: double.infinity,
|
|
|
|
70
|
+// padding: EdgeInsets.all(ScreenUtil().setWidth(40)),
|
|
|
|
71
|
+// decoration: BoxDecoration(
|
|
|
|
72
|
+// color: MyColours.color_ffffff,
|
|
|
|
73
|
+// boxShadow: [
|
|
|
|
74
|
+// BoxShadow(
|
|
|
|
75
|
+// color: MyColours.color_333333,
|
|
|
|
76
|
+// blurRadius: ScreenUtil().setWidth(14))
|
|
|
|
77
|
+// ],
|
|
|
|
78
|
+// borderRadius: BorderRadius.only(
|
|
|
|
79
|
+// topLeft: Radius.circular(ScreenUtil().setWidth(30)),
|
|
|
|
80
|
+// topRight: Radius.circular(ScreenUtil().setWidth(30)),
|
|
|
|
81
|
+// )),
|
|
|
|
82
|
+// child: Row(
|
|
|
|
83
|
+// children: [
|
|
|
|
84
|
+// Image.asset(Utils.getImgPath('select'),
|
|
|
|
85
|
+// width: ScreenUtil().setWidth(30)),
|
|
|
|
86
|
+// HEmptyView(10),
|
|
|
|
87
|
+// Text(
|
|
|
|
88
|
+// '全选',
|
|
|
|
89
|
+// style: TextStyle(
|
|
|
|
90
|
+// fontSize: ScreenUtil().setSp(26),
|
|
|
|
91
|
+// color: MyColours.color_333333),
|
|
|
|
92
|
+// ),
|
|
|
|
93
|
+// HEmptyView(20),
|
|
|
|
94
|
+// Expanded(
|
|
|
|
95
|
+// child: InkWell(
|
|
|
|
96
|
+// onTap: () {
|
|
|
|
97
|
+// NavigatorUtil.goMakeMarkingPage(context);
|
|
|
|
98
|
+// },
|
|
|
|
99
|
+// child: Container(
|
|
|
|
100
|
+// alignment: Alignment.center,
|
|
|
|
101
|
+// padding: EdgeInsets.all(ScreenUtil().setWidth(20)),
|
|
|
|
102
|
+// decoration: BoxDecoration(
|
|
|
|
103
|
+// borderRadius:
|
|
|
|
104
|
+// BorderRadius.circular(ScreenUtil().setWidth(40)),
|
|
|
|
105
|
+// color: MyColours.color_199095),
|
|
|
|
106
|
+// child: Text(
|
|
|
|
107
|
+// '已选[全部]10000位顾客,下发营销任务',
|
|
|
|
108
|
+// overflow: TextOverflow.ellipsis,
|
|
|
|
109
|
+// maxLines: 1,
|
|
|
|
110
|
+// style: TextStyle(
|
|
|
|
111
|
+// fontSize: ScreenUtil().setSp(28),
|
|
|
|
112
|
+// color: MyColours.color_ffffff,
|
|
|
|
113
|
+// ),
|
|
|
|
114
|
+// )),
|
|
|
|
115
|
+// )),
|
|
|
|
116
|
+// // Expanded(
|
|
|
|
117
|
+// // child: RoundButton(
|
|
|
|
118
|
+// // // width: ScreenUtil().setWidth(600),
|
|
|
|
119
|
+// // height: ScreenUtil().setWidth(80),
|
|
|
|
120
|
+// // radius: ScreenUtil().setWidth(40),
|
|
|
|
121
|
+// // text: '已选 [全部] 80位顾客,下发营销任务frfrfrfrfrffrfrfr',
|
|
|
|
122
|
+// // fontSize: 28,
|
|
|
|
123
|
+// // textColor: MyColours.color_ffffff,
|
|
|
|
124
|
+// // gradientStart: MyColours.color_199095,
|
|
|
|
125
|
+// // gradientEnd: MyColours.color_199095,
|
|
|
|
126
|
+// // onPressed: () {},
|
|
|
|
127
|
+// // ))
|
|
|
|
128
|
+// ],
|
|
|
|
129
|
+// ),
|
|
|
|
130
|
+// );
|
|
|
|
131
|
+// }
|
|
132
|
|
132
|
|
|
133
|
- /// 搜索框
|
|
|
|
134
|
- Widget _searchWidget() {
|
|
|
|
135
|
- return Container(
|
|
|
|
136
|
- color: MyColours.color_ffffff,
|
|
|
|
137
|
- padding: EdgeInsets.symmetric(
|
|
|
|
138
|
- horizontal: ScreenUtil().setWidth(40),
|
|
|
|
139
|
- ),
|
|
|
|
140
|
- height: ScreenUtil().setWidth(45 * 2),
|
|
|
|
141
|
- // alignment: Alignment.center,
|
133
|
+// /// 搜索框
|
|
|
|
134
|
+// Widget _searchWidget() {
|
|
|
|
135
|
+// return Container(
|
|
|
|
136
|
+// color: MyColours.color_ffffff,
|
|
|
|
137
|
+// padding: EdgeInsets.symmetric(
|
|
|
|
138
|
+// horizontal: ScreenUtil().setWidth(40),
|
|
|
|
139
|
+// ),
|
|
|
|
140
|
+// height: ScreenUtil().setWidth(45 * 2),
|
|
|
|
141
|
+// // alignment: Alignment.center,
|
|
142
|
|
142
|
|
|
143
|
- child: Container(
|
|
|
|
144
|
- alignment: Alignment.center,
|
|
|
|
145
|
- padding: EdgeInsets.only(
|
|
|
|
146
|
- left: ScreenUtil().setWidth(20 * 2),
|
|
|
|
147
|
- ),
|
|
|
|
148
|
- decoration: BoxDecoration(
|
|
|
|
149
|
- color: MyColours.color_ffffff,
|
|
|
|
150
|
- borderRadius:
|
|
|
|
151
|
- BorderRadius.circular(ScreenUtil().setWidth(24 * 2)),
|
|
|
|
152
|
- border: Border.all(color: Color.fromRGBO(228, 228, 228, 1)),
|
|
|
|
153
|
- boxShadow: [
|
|
|
|
154
|
- BoxShadow(
|
|
|
|
155
|
- color: Color.fromRGBO(220, 220, 220, 1), //投影颜色
|
|
|
|
156
|
- offset: Offset(2, 3), //x,y轴
|
|
|
|
157
|
- blurRadius: ScreenUtil().setWidth(6) //投影距离
|
|
|
|
158
|
- )
|
|
|
|
159
|
- ]),
|
|
|
|
160
|
- child: Row(children: [
|
|
|
|
161
|
- Expanded(
|
|
|
|
162
|
- child: TextField(
|
|
|
|
163
|
- maxLines: 1,
|
|
|
|
164
|
- controller: customerProvider.controller,
|
|
|
|
165
|
- // focusNode: _focusNode,
|
|
|
|
166
|
- // autofocus: true,
|
143
|
+// child: Container(
|
|
|
|
144
|
+// alignment: Alignment.center,
|
|
|
|
145
|
+// padding: EdgeInsets.only(
|
|
|
|
146
|
+// left: ScreenUtil().setWidth(20 * 2),
|
|
|
|
147
|
+// ),
|
|
|
|
148
|
+// decoration: BoxDecoration(
|
|
|
|
149
|
+// color: MyColours.color_ffffff,
|
|
|
|
150
|
+// borderRadius:
|
|
|
|
151
|
+// BorderRadius.circular(ScreenUtil().setWidth(24 * 2)),
|
|
|
|
152
|
+// border: Border.all(color: Color.fromRGBO(228, 228, 228, 1)),
|
|
|
|
153
|
+// boxShadow: [
|
|
|
|
154
|
+// BoxShadow(
|
|
|
|
155
|
+// color: Color.fromRGBO(220, 220, 220, 1), //投影颜色
|
|
|
|
156
|
+// offset: Offset(2, 3), //x,y轴
|
|
|
|
157
|
+// blurRadius: ScreenUtil().setWidth(6) //投影距离
|
|
|
|
158
|
+// )
|
|
|
|
159
|
+// ]),
|
|
|
|
160
|
+// child: Row(children: [
|
|
|
|
161
|
+// Expanded(
|
|
|
|
162
|
+// child: TextField(
|
|
|
|
163
|
+// maxLines: 1,
|
|
|
|
164
|
+// controller: customerProvider.controller,
|
|
|
|
165
|
+// // focusNode: _focusNode,
|
|
|
|
166
|
+// // autofocus: true,
|
|
167
|
|
167
|
|
|
168
|
- style: TextStyle(
|
|
|
|
169
|
- color: MyColours.color_333333,
|
|
|
|
170
|
- fontSize: ScreenUtil().setSp(26)),
|
|
|
|
171
|
- // textAlignVertical: TextAlignVertical.center,
|
|
|
|
172
|
- decoration: InputDecoration(
|
|
|
|
173
|
- hintText: "输入手机号或姓名",
|
|
|
|
174
|
- hintStyle: TextStyle(
|
|
|
|
175
|
- color: MyColours.color_999999,
|
|
|
|
176
|
- fontSize: ScreenUtil().setSp(26),
|
|
|
|
177
|
- ),
|
|
|
|
178
|
- // isCollapsed:
|
|
|
|
179
|
- // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
180
|
- border: OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
181
|
- contentPadding: EdgeInsets.zero,
|
|
|
|
182
|
- // 左边图标设置
|
|
|
|
183
|
- icon: Image.asset(
|
|
|
|
184
|
- Utils.getImgPath('search'),
|
|
|
|
185
|
- width: ScreenUtil().setWidth(30),
|
|
|
|
186
|
- ),
|
|
|
|
187
|
- //右边图标设置
|
|
|
|
188
|
- // suffixIcon:
|
|
|
|
189
|
- ),
|
|
|
|
190
|
- keyboardType: TextInputType.text,
|
|
|
|
191
|
- textInputAction: TextInputAction.done,
|
168
|
+// style: TextStyle(
|
|
|
|
169
|
+// color: MyColours.color_333333,
|
|
|
|
170
|
+// fontSize: ScreenUtil().setSp(26)),
|
|
|
|
171
|
+// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
172
|
+// decoration: InputDecoration(
|
|
|
|
173
|
+// hintText: "输入手机号或姓名",
|
|
|
|
174
|
+// hintStyle: TextStyle(
|
|
|
|
175
|
+// color: MyColours.color_999999,
|
|
|
|
176
|
+// fontSize: ScreenUtil().setSp(26),
|
|
|
|
177
|
+// ),
|
|
|
|
178
|
+// // isCollapsed:
|
|
|
|
179
|
+// // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
180
|
+// border: OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
181
|
+// contentPadding: EdgeInsets.zero,
|
|
|
|
182
|
+// // 左边图标设置
|
|
|
|
183
|
+// icon: Image.asset(
|
|
|
|
184
|
+// Utils.getImgPath('search'),
|
|
|
|
185
|
+// width: ScreenUtil().setWidth(30),
|
|
|
|
186
|
+// ),
|
|
|
|
187
|
+// //右边图标设置
|
|
|
|
188
|
+// // suffixIcon:
|
|
|
|
189
|
+// ),
|
|
|
|
190
|
+// keyboardType: TextInputType.text,
|
|
|
|
191
|
+// textInputAction: TextInputAction.done,
|
|
192
|
|
192
|
|
|
193
|
- onChanged: (value) {
|
|
|
|
194
|
- // setState(() {});
|
|
|
|
195
|
- // _searchSellerLocation();
|
|
|
|
196
|
- customerProvider.searchData(value);
|
|
|
|
197
|
- },
|
|
|
|
198
|
- onEditingComplete: () {
|
|
|
|
199
|
- FocusScope.of(context)
|
|
|
|
200
|
- .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
201
|
- // contantShowModel.searchData(
|
|
|
|
202
|
- // contantShowModel.controller.text);
|
|
|
|
203
|
- // _searchSellerLocation();
|
|
|
|
204
|
- // _focusNode.unfocus();
|
|
|
|
205
|
- },
|
|
|
|
206
|
- ),
|
|
|
|
207
|
- ),
|
|
|
|
208
|
- Offstage(
|
|
|
|
209
|
- offstage: customerProvider.controller.text == '',
|
|
|
|
210
|
- child: GestureDetector(
|
|
|
|
211
|
- child: Container(
|
|
|
|
212
|
- padding: EdgeInsets.symmetric(
|
|
|
|
213
|
- horizontal: ScreenUtil().setWidth(40),
|
|
|
|
214
|
- vertical: ScreenUtil().setWidth(20),
|
|
|
|
215
|
- ),
|
|
|
|
216
|
- // color: Colors.orange,
|
|
|
|
217
|
- alignment: Alignment.centerRight,
|
|
|
|
218
|
- child: Image.asset(
|
|
|
|
219
|
- Utils.getImgPath('clear'),
|
|
|
|
220
|
- width: ScreenUtil().setWidth(30),
|
|
|
|
221
|
- height: ScreenUtil().setWidth(30),
|
|
|
|
222
|
- ),
|
|
|
|
223
|
- ),
|
|
|
|
224
|
- onTap: () {
|
|
|
|
225
|
- WidgetsBinding.instance.addPostFrameCallback(((_) {
|
|
|
|
226
|
- customerProvider.controller.clear();
|
|
|
|
227
|
- customerProvider.searchData('');
|
|
|
|
228
|
- }));
|
|
|
|
229
|
- },
|
|
|
|
230
|
- )),
|
|
|
|
231
|
- // Offstage(
|
|
|
|
232
|
- // offstage: false,
|
|
|
|
233
|
- // child: GestureDetector(
|
|
|
|
234
|
- // child: Container(
|
|
|
|
235
|
- // padding: EdgeInsets.only(
|
|
|
|
236
|
- // right: ScreenUtil().setWidth(30),
|
|
|
|
237
|
- // bottom: ScreenUtil().setWidth(20),
|
|
|
|
238
|
- // top: ScreenUtil().setWidth(20),
|
|
|
|
239
|
- // ),
|
|
|
|
240
|
- // child: Text(
|
|
|
|
241
|
- // '搜索',
|
|
|
|
242
|
- // style: TextStyle(
|
|
|
|
243
|
- // color: MyColours.color_199095,
|
|
|
|
244
|
- // fontSize: ScreenUtil().setSp(28)),
|
|
|
|
245
|
- // ),
|
|
|
|
246
|
- // ),
|
|
|
|
247
|
- // onTap: () {
|
|
|
|
248
|
- // customerProvider.searchData(
|
|
|
|
249
|
- // customerProvider.controller.text);
|
|
|
|
250
|
- // },
|
|
|
|
251
|
- // ))
|
|
|
|
252
|
- ])));
|
|
|
|
253
|
- }
|
193
|
+// onChanged: (value) {
|
|
|
|
194
|
+// // setState(() {});
|
|
|
|
195
|
+// // _searchSellerLocation();
|
|
|
|
196
|
+// customerProvider.searchData(value);
|
|
|
|
197
|
+// },
|
|
|
|
198
|
+// onEditingComplete: () {
|
|
|
|
199
|
+// FocusScope.of(context)
|
|
|
|
200
|
+// .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
201
|
+// // contantShowModel.searchData(
|
|
|
|
202
|
+// // contantShowModel.controller.text);
|
|
|
|
203
|
+// // _searchSellerLocation();
|
|
|
|
204
|
+// // _focusNode.unfocus();
|
|
|
|
205
|
+// },
|
|
|
|
206
|
+// ),
|
|
|
|
207
|
+// ),
|
|
|
|
208
|
+// Offstage(
|
|
|
|
209
|
+// offstage: customerProvider.controller.text == '',
|
|
|
|
210
|
+// child: GestureDetector(
|
|
|
|
211
|
+// child: Container(
|
|
|
|
212
|
+// padding: EdgeInsets.symmetric(
|
|
|
|
213
|
+// horizontal: ScreenUtil().setWidth(40),
|
|
|
|
214
|
+// vertical: ScreenUtil().setWidth(20),
|
|
|
|
215
|
+// ),
|
|
|
|
216
|
+// // color: Colors.orange,
|
|
|
|
217
|
+// alignment: Alignment.centerRight,
|
|
|
|
218
|
+// child: Image.asset(
|
|
|
|
219
|
+// Utils.getImgPath('clear'),
|
|
|
|
220
|
+// width: ScreenUtil().setWidth(30),
|
|
|
|
221
|
+// height: ScreenUtil().setWidth(30),
|
|
|
|
222
|
+// ),
|
|
|
|
223
|
+// ),
|
|
|
|
224
|
+// onTap: () {
|
|
|
|
225
|
+// WidgetsBinding.instance.addPostFrameCallback(((_) {
|
|
|
|
226
|
+// customerProvider.controller.clear();
|
|
|
|
227
|
+// customerProvider.searchData('');
|
|
|
|
228
|
+// }));
|
|
|
|
229
|
+// },
|
|
|
|
230
|
+// )),
|
|
|
|
231
|
+// // Offstage(
|
|
|
|
232
|
+// // offstage: false,
|
|
|
|
233
|
+// // child: GestureDetector(
|
|
|
|
234
|
+// // child: Container(
|
|
|
|
235
|
+// // padding: EdgeInsets.only(
|
|
|
|
236
|
+// // right: ScreenUtil().setWidth(30),
|
|
|
|
237
|
+// // bottom: ScreenUtil().setWidth(20),
|
|
|
|
238
|
+// // top: ScreenUtil().setWidth(20),
|
|
|
|
239
|
+// // ),
|
|
|
|
240
|
+// // child: Text(
|
|
|
|
241
|
+// // '搜索',
|
|
|
|
242
|
+// // style: TextStyle(
|
|
|
|
243
|
+// // color: MyColours.color_199095,
|
|
|
|
244
|
+// // fontSize: ScreenUtil().setSp(28)),
|
|
|
|
245
|
+// // ),
|
|
|
|
246
|
+// // ),
|
|
|
|
247
|
+// // onTap: () {
|
|
|
|
248
|
+// // customerProvider.searchData(
|
|
|
|
249
|
+// // customerProvider.controller.text);
|
|
|
|
250
|
+// // },
|
|
|
|
251
|
+// // ))
|
|
|
|
252
|
+// ])));
|
|
|
|
253
|
+// }
|
|
254
|
|
254
|
|
|
255
|
- Widget _menuWidget() {
|
|
|
|
256
|
- return Container(
|
|
|
|
257
|
- margin: EdgeInsets.symmetric(
|
|
|
|
258
|
- horizontal: ScreenUtil().setWidth(40),
|
|
|
|
259
|
- vertical: ScreenUtil().setWidth(20)),
|
|
|
|
260
|
- decoration: BoxDecoration(color: MyColours.color_ffffff, boxShadow: [
|
|
|
|
261
|
- BoxShadow(
|
|
|
|
262
|
- // color: Colors.red,
|
|
|
|
263
|
- color: Color.fromRGBO(220, 220, 220, 1), //投影颜色
|
|
|
|
264
|
- offset: Offset(2, 2), //x,y轴
|
|
|
|
265
|
- blurRadius: ScreenUtil().setWidth(6) //投影距离
|
|
|
|
266
|
- )
|
|
|
|
267
|
- ]),
|
|
|
|
268
|
- child: Row(
|
|
|
|
269
|
- children: [
|
|
|
|
270
|
- Expanded(
|
|
|
|
271
|
- child: Container(
|
|
|
|
272
|
- padding: EdgeInsets.only(bottom: ScreenUtil().setWidth(10)),
|
|
|
|
273
|
- margin:
|
|
|
|
274
|
- EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(30)),
|
|
|
|
275
|
- child: TabBar(
|
|
|
|
276
|
- controller: tabController,
|
|
|
|
277
|
- indicator: CustomTabIndicator(
|
|
|
|
278
|
- radius: 0,
|
|
|
|
279
|
- ),
|
|
|
|
280
|
- indicatorColor: MyColours.color_199095,
|
|
|
|
281
|
- indicatorSize: TabBarIndicatorSize.tab,
|
|
|
|
282
|
- // indicatorPadding: EdgeInsets.symmetric(
|
|
|
|
283
|
- // horizontal: ScreenUtil().setWidth(12)),
|
|
|
|
284
|
- labelColor: MyColours.color_199095,
|
|
|
|
285
|
- labelStyle: TextStyle(
|
|
|
|
286
|
- fontSize: ScreenUtil().setSp(32),
|
|
|
|
287
|
- fontWeight: FontWeight.bold),
|
|
|
|
288
|
- labelPadding: EdgeInsets.zero,
|
|
|
|
289
|
- unselectedLabelStyle: TextStyle(
|
|
|
|
290
|
- fontWeight: FontWeight.normal,
|
|
|
|
291
|
- fontSize: ScreenUtil().setSp(28),
|
|
|
|
292
|
- ),
|
|
|
|
293
|
- unselectedLabelColor: MyColours.color_999999,
|
|
|
|
294
|
- tabs: _tabBarTitle.map((value) {
|
|
|
|
295
|
- return Tab(
|
|
|
|
296
|
- child: Text(value),
|
|
|
|
297
|
- );
|
|
|
|
298
|
- }).toList()),
|
|
|
|
299
|
- )),
|
|
|
|
300
|
- InkWell(
|
|
|
|
301
|
- onTap: () {
|
|
|
|
302
|
- setState(() {
|
|
|
|
303
|
- showFilter = !showFilter;
|
|
|
|
304
|
- });
|
|
|
|
305
|
- if (showFilter) {
|
|
|
|
306
|
- _showFilterDialogFromTop(context, onPressedReset: () {
|
|
|
|
307
|
- Navigator.of(context).pop();
|
|
|
|
308
|
- setState(() {
|
|
|
|
309
|
- showFilter = false;
|
|
|
|
310
|
- });
|
|
|
|
311
|
- }, onPressedComplete: () {
|
|
|
|
312
|
- Navigator.of(context).pop();
|
|
|
|
313
|
- setState(() {
|
|
|
|
314
|
- showFilter = false;
|
|
|
|
315
|
- });
|
|
|
|
316
|
- }, tapWhiteBack: () {
|
|
|
|
317
|
- // Navigator.of(context).pop();
|
|
|
|
318
|
- // setState(() {
|
|
|
|
319
|
- // showFilter = false;
|
|
|
|
320
|
- // });
|
|
|
|
321
|
- });
|
|
|
|
322
|
- }
|
|
|
|
323
|
- },
|
|
|
|
324
|
- child: Container(
|
|
|
|
325
|
- padding: EdgeInsets.only(bottom: ScreenUtil().setWidth(10)),
|
|
|
|
326
|
- margin: EdgeInsets.only(right: ScreenUtil().setWidth(30)),
|
|
|
|
327
|
- width: ScreenUtil().setWidth(100),
|
|
|
|
328
|
- // height: ScreenUtil().setWidth(50),
|
|
|
|
329
|
- child: Row(
|
|
|
|
330
|
- children: [
|
|
|
|
331
|
- Text(
|
|
|
|
332
|
- '筛选',
|
|
|
|
333
|
- style: TextStyle(
|
|
|
|
334
|
- fontSize: ScreenUtil().setSp(28),
|
|
|
|
335
|
- color: MyColours.color_999999),
|
|
|
|
336
|
- ),
|
|
|
|
337
|
- HEmptyView(10),
|
|
|
|
338
|
- Image.asset(
|
|
|
|
339
|
- Utils.getImgPath(
|
|
|
|
340
|
- showFilter ? 'c_arrow_up' : 'c_arrow_down'),
|
|
|
|
341
|
- width: ScreenUtil().setWidth(24),
|
|
|
|
342
|
- // height: ScreenUtil().setWidth(10),
|
|
|
|
343
|
- )
|
|
|
|
344
|
- ],
|
|
|
|
345
|
- )),
|
|
|
|
346
|
- )
|
|
|
|
347
|
- ],
|
|
|
|
348
|
- ));
|
|
|
|
349
|
- }
|
255
|
+// Widget _menuWidget() {
|
|
|
|
256
|
+// return Container(
|
|
|
|
257
|
+// margin: EdgeInsets.symmetric(
|
|
|
|
258
|
+// horizontal: ScreenUtil().setWidth(40),
|
|
|
|
259
|
+// vertical: ScreenUtil().setWidth(20)),
|
|
|
|
260
|
+// decoration: BoxDecoration(color: MyColours.color_ffffff, boxShadow: [
|
|
|
|
261
|
+// BoxShadow(
|
|
|
|
262
|
+// // color: Colors.red,
|
|
|
|
263
|
+// color: Color.fromRGBO(220, 220, 220, 1), //投影颜色
|
|
|
|
264
|
+// offset: Offset(2, 2), //x,y轴
|
|
|
|
265
|
+// blurRadius: ScreenUtil().setWidth(6) //投影距离
|
|
|
|
266
|
+// )
|
|
|
|
267
|
+// ]),
|
|
|
|
268
|
+// child: Row(
|
|
|
|
269
|
+// children: [
|
|
|
|
270
|
+// Expanded(
|
|
|
|
271
|
+// child: Container(
|
|
|
|
272
|
+// padding: EdgeInsets.only(bottom: ScreenUtil().setWidth(10)),
|
|
|
|
273
|
+// margin:
|
|
|
|
274
|
+// EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(30)),
|
|
|
|
275
|
+// child: TabBar(
|
|
|
|
276
|
+// controller: tabController,
|
|
|
|
277
|
+// indicator: CustomTabIndicator(
|
|
|
|
278
|
+// radius: 0,
|
|
|
|
279
|
+// ),
|
|
|
|
280
|
+// indicatorColor: MyColours.color_199095,
|
|
|
|
281
|
+// indicatorSize: TabBarIndicatorSize.tab,
|
|
|
|
282
|
+// // indicatorPadding: EdgeInsets.symmetric(
|
|
|
|
283
|
+// // horizontal: ScreenUtil().setWidth(12)),
|
|
|
|
284
|
+// labelColor: MyColours.color_199095,
|
|
|
|
285
|
+// labelStyle: TextStyle(
|
|
|
|
286
|
+// fontSize: ScreenUtil().setSp(32),
|
|
|
|
287
|
+// fontWeight: FontWeight.bold),
|
|
|
|
288
|
+// labelPadding: EdgeInsets.zero,
|
|
|
|
289
|
+// unselectedLabelStyle: TextStyle(
|
|
|
|
290
|
+// fontWeight: FontWeight.normal,
|
|
|
|
291
|
+// fontSize: ScreenUtil().setSp(28),
|
|
|
|
292
|
+// ),
|
|
|
|
293
|
+// unselectedLabelColor: MyColours.color_999999,
|
|
|
|
294
|
+// tabs: _tabBarTitle.map((value) {
|
|
|
|
295
|
+// return Tab(
|
|
|
|
296
|
+// child: Text(value),
|
|
|
|
297
|
+// );
|
|
|
|
298
|
+// }).toList()),
|
|
|
|
299
|
+// )),
|
|
|
|
300
|
+// InkWell(
|
|
|
|
301
|
+// onTap: () {
|
|
|
|
302
|
+// setState(() {
|
|
|
|
303
|
+// showFilter = !showFilter;
|
|
|
|
304
|
+// });
|
|
|
|
305
|
+// if (showFilter) {
|
|
|
|
306
|
+// _showFilterDialogFromTop(context, onPressedReset: () {
|
|
|
|
307
|
+// Navigator.of(context).pop();
|
|
|
|
308
|
+// setState(() {
|
|
|
|
309
|
+// showFilter = false;
|
|
|
|
310
|
+// });
|
|
|
|
311
|
+// }, onPressedComplete: () {
|
|
|
|
312
|
+// Navigator.of(context).pop();
|
|
|
|
313
|
+// setState(() {
|
|
|
|
314
|
+// showFilter = false;
|
|
|
|
315
|
+// });
|
|
|
|
316
|
+// }, tapWhiteBack: () {
|
|
|
|
317
|
+// // Navigator.of(context).pop();
|
|
|
|
318
|
+// // setState(() {
|
|
|
|
319
|
+// // showFilter = false;
|
|
|
|
320
|
+// // });
|
|
|
|
321
|
+// });
|
|
|
|
322
|
+// }
|
|
|
|
323
|
+// },
|
|
|
|
324
|
+// child: Container(
|
|
|
|
325
|
+// padding: EdgeInsets.only(bottom: ScreenUtil().setWidth(10)),
|
|
|
|
326
|
+// margin: EdgeInsets.only(right: ScreenUtil().setWidth(30)),
|
|
|
|
327
|
+// width: ScreenUtil().setWidth(100),
|
|
|
|
328
|
+// // height: ScreenUtil().setWidth(50),
|
|
|
|
329
|
+// child: Row(
|
|
|
|
330
|
+// children: [
|
|
|
|
331
|
+// Text(
|
|
|
|
332
|
+// '筛选',
|
|
|
|
333
|
+// style: TextStyle(
|
|
|
|
334
|
+// fontSize: ScreenUtil().setSp(28),
|
|
|
|
335
|
+// color: MyColours.color_999999),
|
|
|
|
336
|
+// ),
|
|
|
|
337
|
+// HEmptyView(10),
|
|
|
|
338
|
+// Image.asset(
|
|
|
|
339
|
+// Utils.getImgPath(
|
|
|
|
340
|
+// showFilter ? 'c_arrow_up' : 'c_arrow_down'),
|
|
|
|
341
|
+// width: ScreenUtil().setWidth(24),
|
|
|
|
342
|
+// // height: ScreenUtil().setWidth(10),
|
|
|
|
343
|
+// )
|
|
|
|
344
|
+// ],
|
|
|
|
345
|
+// )),
|
|
|
|
346
|
+// )
|
|
|
|
347
|
+// ],
|
|
|
|
348
|
+// ));
|
|
|
|
349
|
+// }
|
|
350
|
|
350
|
|
|
351
|
- ///筛选弹框
|
|
|
|
352
|
- _showFilterDialogFromTop(BuildContext context,
|
|
|
|
353
|
- {VoidCallback onPressedReset,
|
|
|
|
354
|
- VoidCallback onPressedComplete,
|
|
|
|
355
|
- GestureTapCallback tapWhiteBack}) {
|
|
|
|
356
|
- showGeneralDialog(
|
|
|
|
357
|
- context: context,
|
|
|
|
358
|
- barrierDismissible: false,
|
|
|
|
359
|
- barrierColor: Colors.transparent,
|
|
|
|
360
|
- barrierLabel:
|
|
|
|
361
|
- MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
|
|
|
362
|
- transitionDuration: const Duration(milliseconds: 150),
|
|
|
|
363
|
- pageBuilder: (BuildContext context, Animation animation,
|
|
|
|
364
|
- Animation secondaryAnimation) {
|
|
|
|
365
|
- return Scaffold(
|
|
|
|
366
|
- backgroundColor: Colors.transparent,
|
|
|
|
367
|
- // resizeToAvoidBottomInset: false,
|
|
|
|
368
|
- body: StatefulBuilder(builder: (context, state) {
|
|
|
|
369
|
- return GestureDetector(
|
|
|
|
370
|
- // behavior: HitTestBehavior.opaque,
|
|
|
|
371
|
- onTap: tapWhiteBack,
|
|
|
|
372
|
- child: _filterWidget(
|
|
|
|
373
|
- state,
|
|
|
|
374
|
- onPressedReset,
|
|
|
|
375
|
- onPressedComplete,
|
|
|
|
376
|
- ));
|
|
|
|
377
|
- }));
|
|
|
|
378
|
- });
|
|
|
|
379
|
- }
|
351
|
+// ///筛选弹框
|
|
|
|
352
|
+// _showFilterDialogFromTop(BuildContext context,
|
|
|
|
353
|
+// {VoidCallback onPressedReset,
|
|
|
|
354
|
+// VoidCallback onPressedComplete,
|
|
|
|
355
|
+// GestureTapCallback tapWhiteBack}) {
|
|
|
|
356
|
+// showGeneralDialog(
|
|
|
|
357
|
+// context: context,
|
|
|
|
358
|
+// barrierDismissible: false,
|
|
|
|
359
|
+// barrierColor: Colors.transparent,
|
|
|
|
360
|
+// barrierLabel:
|
|
|
|
361
|
+// MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
|
|
|
362
|
+// transitionDuration: const Duration(milliseconds: 150),
|
|
|
|
363
|
+// pageBuilder: (BuildContext context, Animation animation,
|
|
|
|
364
|
+// Animation secondaryAnimation) {
|
|
|
|
365
|
+// return Scaffold(
|
|
|
|
366
|
+// backgroundColor: Colors.transparent,
|
|
|
|
367
|
+// // resizeToAvoidBottomInset: false,
|
|
|
|
368
|
+// body: StatefulBuilder(builder: (context, state) {
|
|
|
|
369
|
+// return GestureDetector(
|
|
|
|
370
|
+// // behavior: HitTestBehavior.opaque,
|
|
|
|
371
|
+// onTap: tapWhiteBack,
|
|
|
|
372
|
+// child: _filterWidget(
|
|
|
|
373
|
+// state,
|
|
|
|
374
|
+// onPressedReset,
|
|
|
|
375
|
+// onPressedComplete,
|
|
|
|
376
|
+// ));
|
|
|
|
377
|
+// }));
|
|
|
|
378
|
+// });
|
|
|
|
379
|
+// }
|
|
380
|
|
380
|
|
|
381
|
- ///弹框text
|
|
|
|
382
|
- _textWidget(String title, Color textColor, FontWeight fontWeight, int size) {
|
|
|
|
383
|
- return Text(title,
|
|
|
|
384
|
- style: TextStyle(
|
|
|
|
385
|
- color: textColor,
|
|
|
|
386
|
- decoration: TextDecoration.none,
|
|
|
|
387
|
- fontWeight: fontWeight,
|
|
|
|
388
|
- fontSize: ScreenUtil().setSp(size)));
|
|
|
|
389
|
- }
|
381
|
+// ///弹框text
|
|
|
|
382
|
+// _textWidget(String title, Color textColor, FontWeight fontWeight, int size) {
|
|
|
|
383
|
+// return Text(title,
|
|
|
|
384
|
+// style: TextStyle(
|
|
|
|
385
|
+// color: textColor,
|
|
|
|
386
|
+// decoration: TextDecoration.none,
|
|
|
|
387
|
+// fontWeight: fontWeight,
|
|
|
|
388
|
+// fontSize: ScreenUtil().setSp(size)));
|
|
|
|
389
|
+// }
|
|
390
|
|
390
|
|
|
391
|
- ///客户经理
|
|
|
|
392
|
- Widget _managerWidget() {
|
|
|
|
393
|
- return Column(
|
|
|
|
394
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
395
|
- children: [
|
|
|
|
396
|
- Row(
|
|
|
|
397
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
398
|
- children: [
|
|
|
|
399
|
- _textWidget('客户经理', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
400
|
- GestureDetector(
|
|
|
|
401
|
- onTap: () {},
|
|
|
|
402
|
- child: _textWidget(
|
|
|
|
403
|
- '全选', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
404
|
- )
|
|
|
|
405
|
- ],
|
|
|
|
406
|
- ),
|
|
|
|
407
|
- VEmptyView(30),
|
|
|
|
408
|
- Wrap(
|
|
|
|
409
|
- spacing: ScreenUtil().setWidth(20),
|
|
|
|
410
|
- runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
411
|
- children: _buildFilterItem([
|
|
|
|
412
|
- {'title': 'kkkk', 'select': false},
|
|
|
|
413
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
414
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
415
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
416
|
- {'title': 'k', 'select': true},
|
|
|
|
417
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
418
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
419
|
- {'title': 'k', 'select': true},
|
|
|
|
420
|
- {'title': 'kdsfjsfsdfhjsdfh', 'select': true},
|
|
|
|
421
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
422
|
- ], false)),
|
|
|
|
423
|
- ],
|
|
|
|
424
|
- );
|
|
|
|
425
|
- }
|
391
|
+// ///客户经理
|
|
|
|
392
|
+// Widget _managerWidget() {
|
|
|
|
393
|
+// return Column(
|
|
|
|
394
|
+// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
395
|
+// children: [
|
|
|
|
396
|
+// Row(
|
|
|
|
397
|
+// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
398
|
+// children: [
|
|
|
|
399
|
+// _textWidget('客户经理', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
400
|
+// GestureDetector(
|
|
|
|
401
|
+// onTap: () {},
|
|
|
|
402
|
+// child: _textWidget(
|
|
|
|
403
|
+// '全选', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
404
|
+// )
|
|
|
|
405
|
+// ],
|
|
|
|
406
|
+// ),
|
|
|
|
407
|
+// VEmptyView(30),
|
|
|
|
408
|
+// Wrap(
|
|
|
|
409
|
+// spacing: ScreenUtil().setWidth(20),
|
|
|
|
410
|
+// runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
411
|
+// children: _buildFilterItem([
|
|
|
|
412
|
+// {'title': 'kkkk', 'select': false},
|
|
|
|
413
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
414
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
415
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
416
|
+// {'title': 'k', 'select': true},
|
|
|
|
417
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
418
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
419
|
+// {'title': 'k', 'select': true},
|
|
|
|
420
|
+// {'title': 'kdsfjsfsdfhjsdfh', 'select': true},
|
|
|
|
421
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
422
|
+// ], false)),
|
|
|
|
423
|
+// ],
|
|
|
|
424
|
+// );
|
|
|
|
425
|
+// }
|
|
426
|
|
426
|
|
|
427
|
- ///活跃度
|
|
|
|
428
|
- Widget _activityWidget() {
|
|
|
|
429
|
- return Column(
|
|
|
|
430
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
431
|
- children: [
|
|
|
|
432
|
- Row(
|
|
|
|
433
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
434
|
- children: [
|
|
|
|
435
|
- _textWidget('活跃度', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
436
|
- GestureDetector(
|
|
|
|
437
|
- onTap: () {},
|
|
|
|
438
|
- child: _textWidget(
|
|
|
|
439
|
- '全选', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
440
|
- )
|
|
|
|
441
|
- ],
|
|
|
|
442
|
- ),
|
|
|
|
443
|
- VEmptyView(30),
|
|
|
|
444
|
- Wrap(
|
|
|
|
445
|
- spacing: ScreenUtil().setWidth(20),
|
|
|
|
446
|
- runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
447
|
- children: _buildFilterItem([
|
|
|
|
448
|
- {'title': 'kkkk', 'select': false},
|
|
|
|
449
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
450
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
451
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
452
|
- {'title': 'k', 'select': true},
|
|
|
|
453
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
454
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
455
|
- {'title': 'k', 'select': true},
|
|
|
|
456
|
- {'title': 'kdsfjsfsdfhjsdfh', 'select': true},
|
|
|
|
457
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
458
|
- ], false)),
|
|
|
|
459
|
- ],
|
|
|
|
460
|
- );
|
|
|
|
461
|
- }
|
427
|
+// ///活跃度
|
|
|
|
428
|
+// Widget _activityWidget() {
|
|
|
|
429
|
+// return Column(
|
|
|
|
430
|
+// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
431
|
+// children: [
|
|
|
|
432
|
+// Row(
|
|
|
|
433
|
+// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
434
|
+// children: [
|
|
|
|
435
|
+// _textWidget('活跃度', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
436
|
+// GestureDetector(
|
|
|
|
437
|
+// onTap: () {},
|
|
|
|
438
|
+// child: _textWidget(
|
|
|
|
439
|
+// '全选', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
440
|
+// )
|
|
|
|
441
|
+// ],
|
|
|
|
442
|
+// ),
|
|
|
|
443
|
+// VEmptyView(30),
|
|
|
|
444
|
+// Wrap(
|
|
|
|
445
|
+// spacing: ScreenUtil().setWidth(20),
|
|
|
|
446
|
+// runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
447
|
+// children: _buildFilterItem([
|
|
|
|
448
|
+// {'title': 'kkkk', 'select': false},
|
|
|
|
449
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
450
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
451
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
452
|
+// {'title': 'k', 'select': true},
|
|
|
|
453
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
454
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
455
|
+// {'title': 'k', 'select': true},
|
|
|
|
456
|
+// {'title': 'kdsfjsfsdfhjsdfh', 'select': true},
|
|
|
|
457
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
458
|
+// ], false)),
|
|
|
|
459
|
+// ],
|
|
|
|
460
|
+// );
|
|
|
|
461
|
+// }
|
|
462
|
|
462
|
|
|
463
|
- ///自定义标签
|
|
|
|
464
|
- Widget _labelWidget() {
|
|
|
|
465
|
- return Column(
|
|
|
|
466
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
467
|
- children: [
|
|
|
|
468
|
- Row(
|
|
|
|
469
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
470
|
- children: [
|
|
|
|
471
|
- _textWidget('自定义标签', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
472
|
- GestureDetector(
|
|
|
|
473
|
- onTap: () {},
|
|
|
|
474
|
- child: _textWidget(
|
|
|
|
475
|
- '全选', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
476
|
- )
|
|
|
|
477
|
- ],
|
|
|
|
478
|
- ),
|
|
|
|
479
|
- VEmptyView(30),
|
|
|
|
480
|
- Wrap(
|
|
|
|
481
|
- spacing: ScreenUtil().setWidth(20),
|
|
|
|
482
|
- runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
483
|
- children: _buildFilterItem([
|
|
|
|
484
|
- {'title': 'kkkk', 'select': false},
|
|
|
|
485
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
486
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
487
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
488
|
- {'title': 'k', 'select': true},
|
|
|
|
489
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
490
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
491
|
- {'title': 'k', 'select': true},
|
|
|
|
492
|
- {'title': 'kdsfjsfsdfhjsdfh', 'select': false},
|
|
|
|
493
|
- {'title': 'kkkk', 'select': true},
|
|
|
|
494
|
- ], true)),
|
|
|
|
495
|
- ],
|
|
|
|
496
|
- );
|
|
|
|
497
|
- }
|
463
|
+// ///自定义标签
|
|
|
|
464
|
+// Widget _labelWidget() {
|
|
|
|
465
|
+// return Column(
|
|
|
|
466
|
+// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
467
|
+// children: [
|
|
|
|
468
|
+// Row(
|
|
|
|
469
|
+// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
470
|
+// children: [
|
|
|
|
471
|
+// _textWidget('自定义标签', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
472
|
+// GestureDetector(
|
|
|
|
473
|
+// onTap: () {},
|
|
|
|
474
|
+// child: _textWidget(
|
|
|
|
475
|
+// '全选', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
476
|
+// )
|
|
|
|
477
|
+// ],
|
|
|
|
478
|
+// ),
|
|
|
|
479
|
+// VEmptyView(30),
|
|
|
|
480
|
+// Wrap(
|
|
|
|
481
|
+// spacing: ScreenUtil().setWidth(20),
|
|
|
|
482
|
+// runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
483
|
+// children: _buildFilterItem([
|
|
|
|
484
|
+// {'title': 'kkkk', 'select': false},
|
|
|
|
485
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
486
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
487
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
488
|
+// {'title': 'k', 'select': true},
|
|
|
|
489
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
490
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
491
|
+// {'title': 'k', 'select': true},
|
|
|
|
492
|
+// {'title': 'kdsfjsfsdfhjsdfh', 'select': false},
|
|
|
|
493
|
+// {'title': 'kkkk', 'select': true},
|
|
|
|
494
|
+// ], true)),
|
|
|
|
495
|
+// ],
|
|
|
|
496
|
+// );
|
|
|
|
497
|
+// }
|
|
498
|
|
498
|
|
|
499
|
- ///大于、等于、小于
|
|
|
|
500
|
- List<DropdownMenuItem> _dropdownMenuItem() {
|
|
|
|
501
|
- List<DropdownMenuItem> list = [];
|
|
|
|
502
|
- for (int i = 0; i < timeTilte.length; i++) {
|
|
|
|
503
|
- list.add(DropdownMenuItem(
|
|
|
|
504
|
- child: _textWidget(
|
|
|
|
505
|
- timeTilte[i], MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
506
|
- value: i));
|
|
|
|
507
|
- }
|
|
|
|
508
|
- return list;
|
|
|
|
509
|
- }
|
499
|
+// ///大于、等于、小于
|
|
|
|
500
|
+// List<DropdownMenuItem> _dropdownMenuItem() {
|
|
|
|
501
|
+// List<DropdownMenuItem> list = [];
|
|
|
|
502
|
+// for (int i = 0; i < timeTilte.length; i++) {
|
|
|
|
503
|
+// list.add(DropdownMenuItem(
|
|
|
|
504
|
+// child: _textWidget(
|
|
|
|
505
|
+// timeTilte[i], MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
506
|
+// value: i));
|
|
|
|
507
|
+// }
|
|
|
|
508
|
+// return list;
|
|
|
|
509
|
+// }
|
|
510
|
|
510
|
|
|
511
|
- _selectWidget(List<String> data, ClickCallback onTap) {
|
|
|
|
512
|
- return Container(
|
|
|
|
513
|
- decoration: BoxDecoration(
|
|
|
|
514
|
- color: MyColours.color_ffffff,
|
|
|
|
515
|
- borderRadius: BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
516
|
- border: Border.all(
|
|
|
|
517
|
- color: MyColours.color_cccccc,
|
|
|
|
518
|
- width: ScreenUtil().setWidth(2))),
|
|
|
|
519
|
- width: ScreenUtil().setWidth(130 * 2),
|
|
|
|
520
|
- // constraints: BoxConstraints(
|
|
|
|
521
|
- // maxHeight: ScreenUtil().setWidth(130 * 2),
|
|
|
|
522
|
- // ),
|
|
|
|
523
|
- child: ListView.builder(
|
|
|
|
524
|
- shrinkWrap: true,
|
|
|
|
525
|
- padding: EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(8)),
|
|
|
|
526
|
- itemCount: data.length,
|
|
|
|
527
|
- itemBuilder: (context, index) {
|
|
|
|
528
|
- return InkWell(
|
|
|
|
529
|
- onTap: () {
|
|
|
|
530
|
- onTap(index);
|
|
|
|
531
|
- },
|
|
|
|
532
|
- child: Container(
|
|
|
|
533
|
- padding:
|
|
|
|
534
|
- EdgeInsets.symmetric(vertical: ScreenUtil().setWidth(20)),
|
|
|
|
535
|
- decoration: BoxDecoration(
|
|
|
|
536
|
- border: Border(
|
|
|
|
537
|
- bottom: BorderSide(
|
|
|
|
538
|
- color: MyColours.color_efefef,
|
|
|
|
539
|
- width: data.length - 1 == index
|
|
|
|
540
|
- ? 0
|
|
|
|
541
|
- : ScreenUtil().setWidth(2)))),
|
|
|
|
542
|
- child: Text(data[index],
|
|
|
|
543
|
- style: TextStyle(
|
|
|
|
544
|
- color: MyColours.color_199095,
|
|
|
|
545
|
- fontWeight: FontWeight.bold,
|
|
|
|
546
|
- fontSize: ScreenUtil().setSp(28))),
|
|
|
|
547
|
- ),
|
|
|
|
548
|
- );
|
|
|
|
549
|
- }));
|
|
|
|
550
|
- }
|
511
|
+// _selectWidget(List<String> data, ClickCallback onTap) {
|
|
|
|
512
|
+// return Container(
|
|
|
|
513
|
+// decoration: BoxDecoration(
|
|
|
|
514
|
+// color: MyColours.color_ffffff,
|
|
|
|
515
|
+// borderRadius: BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
516
|
+// border: Border.all(
|
|
|
|
517
|
+// color: MyColours.color_cccccc,
|
|
|
|
518
|
+// width: ScreenUtil().setWidth(2))),
|
|
|
|
519
|
+// width: ScreenUtil().setWidth(130 * 2),
|
|
|
|
520
|
+// // constraints: BoxConstraints(
|
|
|
|
521
|
+// // maxHeight: ScreenUtil().setWidth(130 * 2),
|
|
|
|
522
|
+// // ),
|
|
|
|
523
|
+// child: ListView.builder(
|
|
|
|
524
|
+// shrinkWrap: true,
|
|
|
|
525
|
+// padding: EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(8)),
|
|
|
|
526
|
+// itemCount: data.length,
|
|
|
|
527
|
+// itemBuilder: (context, index) {
|
|
|
|
528
|
+// return InkWell(
|
|
|
|
529
|
+// onTap: () {
|
|
|
|
530
|
+// onTap(index);
|
|
|
|
531
|
+// },
|
|
|
|
532
|
+// child: Container(
|
|
|
|
533
|
+// padding:
|
|
|
|
534
|
+// EdgeInsets.symmetric(vertical: ScreenUtil().setWidth(20)),
|
|
|
|
535
|
+// decoration: BoxDecoration(
|
|
|
|
536
|
+// border: Border(
|
|
|
|
537
|
+// bottom: BorderSide(
|
|
|
|
538
|
+// color: MyColours.color_efefef,
|
|
|
|
539
|
+// width: data.length - 1 == index
|
|
|
|
540
|
+// ? 0
|
|
|
|
541
|
+// : ScreenUtil().setWidth(2)))),
|
|
|
|
542
|
+// child: Text(data[index],
|
|
|
|
543
|
+// style: TextStyle(
|
|
|
|
544
|
+// color: MyColours.color_199095,
|
|
|
|
545
|
+// fontWeight: FontWeight.bold,
|
|
|
|
546
|
+// fontSize: ScreenUtil().setSp(28))),
|
|
|
|
547
|
+// ),
|
|
|
|
548
|
+// );
|
|
|
|
549
|
+// }));
|
|
|
|
550
|
+// }
|
|
551
|
|
551
|
|
|
552
|
- ///高级筛选
|
|
|
|
553
|
- Widget _advancedFilterWidget(state) {
|
|
|
|
554
|
- return Column(
|
|
|
|
555
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
556
|
- children: [
|
|
|
|
557
|
- Row(
|
|
|
|
558
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
559
|
- children: [
|
|
|
|
560
|
- _textWidget('高级筛选', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
561
|
- GestureDetector(
|
|
|
|
562
|
- onTap: () {},
|
|
|
|
563
|
- child: _textWidget(
|
|
|
|
564
|
- '清空', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
565
|
- )
|
|
|
|
566
|
- ],
|
|
|
|
567
|
- ),
|
|
|
|
568
|
- VEmptyView(30),
|
|
|
|
569
|
- Row(
|
|
|
|
570
|
- children: [
|
|
|
|
571
|
- Expanded(child: _textFeildWidget()),
|
|
|
|
572
|
- HEmptyView(10),
|
|
|
|
573
|
- _textWidget('至', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
574
|
- HEmptyView(10),
|
|
|
|
575
|
- Expanded(child: _textFeildWidget()),
|
|
|
|
576
|
- ],
|
|
|
|
577
|
- ),
|
|
|
|
578
|
- VEmptyView(30),
|
|
|
|
579
|
- Wrap(
|
|
|
|
580
|
- spacing: ScreenUtil().setWidth(20),
|
|
|
|
581
|
- runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
582
|
- children: _buildFilterItem([
|
|
|
|
583
|
- {'title': '7天', 'select': true},
|
|
|
|
584
|
- {'title': '30天', 'select': true},
|
|
|
|
585
|
- {'title': '60天', 'select': true},
|
|
|
|
586
|
- {'title': '120天', 'select': true},
|
|
|
|
587
|
- ], true, grayBack: true)),
|
|
|
|
588
|
- VEmptyView(30),
|
|
|
|
589
|
- _textWidget('时间内预订次数', MyColours.color_333333, FontWeight.normal, 24),
|
|
|
|
590
|
- VEmptyView(30),
|
|
|
|
591
|
- /**
|
|
|
|
592
|
- Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
|
|
|
593
|
- Material(
|
|
|
|
594
|
- child: Container(
|
|
|
|
595
|
- height: ScreenUtil().setWidth(50),
|
|
|
|
596
|
- width: ScreenUtil().setWidth(130),
|
|
|
|
597
|
- decoration: BoxDecoration(
|
|
|
|
598
|
- borderRadius:
|
|
|
|
599
|
- BorderRadius.circular(ScreenUtil().setWidth(30)),
|
|
|
|
600
|
- color: Color.fromRGBO(239, 239, 239, 1)),
|
|
|
|
601
|
- child: _buttonChoose(dropValue, (value) {
|
|
|
|
602
|
- state(() {
|
|
|
|
603
|
- showDrop = !showDrop;
|
|
|
|
604
|
- _scrollCrl.jumpTo(_scrollCrl.position.maxScrollExtent);
|
|
|
|
605
|
- });
|
552
|
+// ///高级筛选
|
|
|
|
553
|
+// Widget _advancedFilterWidget(state) {
|
|
|
|
554
|
+// return Column(
|
|
|
|
555
|
+// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
556
|
+// children: [
|
|
|
|
557
|
+// Row(
|
|
|
|
558
|
+// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
559
|
+// children: [
|
|
|
|
560
|
+// _textWidget('高级筛选', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
561
|
+// GestureDetector(
|
|
|
|
562
|
+// onTap: () {},
|
|
|
|
563
|
+// child: _textWidget(
|
|
|
|
564
|
+// '清空', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
565
|
+// )
|
|
|
|
566
|
+// ],
|
|
|
|
567
|
+// ),
|
|
|
|
568
|
+// VEmptyView(30),
|
|
|
|
569
|
+// Row(
|
|
|
|
570
|
+// children: [
|
|
|
|
571
|
+// Expanded(child: _textFeildWidget()),
|
|
|
|
572
|
+// HEmptyView(10),
|
|
|
|
573
|
+// _textWidget('至', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
574
|
+// HEmptyView(10),
|
|
|
|
575
|
+// Expanded(child: _textFeildWidget()),
|
|
|
|
576
|
+// ],
|
|
|
|
577
|
+// ),
|
|
|
|
578
|
+// VEmptyView(30),
|
|
|
|
579
|
+// Wrap(
|
|
|
|
580
|
+// spacing: ScreenUtil().setWidth(20),
|
|
|
|
581
|
+// runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
582
|
+// children: _buildFilterItem([
|
|
|
|
583
|
+// {'title': '7天', 'select': true},
|
|
|
|
584
|
+// {'title': '30天', 'select': true},
|
|
|
|
585
|
+// {'title': '60天', 'select': true},
|
|
|
|
586
|
+// {'title': '120天', 'select': true},
|
|
|
|
587
|
+// ], true, grayBack: true)),
|
|
|
|
588
|
+// VEmptyView(30),
|
|
|
|
589
|
+// _textWidget('时间内预订次数', MyColours.color_333333, FontWeight.normal, 24),
|
|
|
|
590
|
+// VEmptyView(30),
|
|
|
|
591
|
+// /**
|
|
|
|
592
|
+// Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
|
|
|
593
|
+// Material(
|
|
|
|
594
|
+// child: Container(
|
|
|
|
595
|
+// height: ScreenUtil().setWidth(50),
|
|
|
|
596
|
+// width: ScreenUtil().setWidth(130),
|
|
|
|
597
|
+// decoration: BoxDecoration(
|
|
|
|
598
|
+// borderRadius:
|
|
|
|
599
|
+// BorderRadius.circular(ScreenUtil().setWidth(30)),
|
|
|
|
600
|
+// color: Color.fromRGBO(239, 239, 239, 1)),
|
|
|
|
601
|
+// child: _buttonChoose(dropValue, (value) {
|
|
|
|
602
|
+// state(() {
|
|
|
|
603
|
+// showDrop = !showDrop;
|
|
|
|
604
|
+// _scrollCrl.jumpTo(_scrollCrl.position.maxScrollExtent);
|
|
|
|
605
|
+// });
|
|
606
|
|
606
|
|
|
607
|
- // _scrollCrl.position
|
|
|
|
608
|
- // .didUpdateScrollPositionBy(2); //这里触发更新滚动条
|
|
|
|
609
|
- }))),
|
|
|
|
610
|
- VEmptyView(10),
|
|
|
|
611
|
- Material(
|
|
|
|
612
|
- child: Offstage(
|
|
|
|
613
|
- offstage: showDrop,
|
|
|
|
614
|
- child: _selectWidget(timeTilte, (index) {
|
|
|
|
615
|
- print(timeTilte[index]);
|
|
|
|
616
|
- state(() {
|
|
|
|
617
|
- showDrop = !showDrop;
|
|
|
|
618
|
- // _provider.currentIndex = index;
|
|
|
|
619
|
- dropValue = timeTilte[index];
|
|
|
|
620
|
- });
|
|
|
|
621
|
- }),
|
|
|
|
622
|
- )),
|
|
|
|
623
|
- ]),
|
|
|
|
624
|
- VEmptyView(50),
|
|
|
|
625
|
- */
|
|
|
|
626
|
- Row(children: [
|
|
|
|
627
|
- Material(
|
|
|
|
628
|
- child: Container(
|
|
|
|
629
|
- height: ScreenUtil().setWidth(50),
|
|
|
|
630
|
- // width: ScreenUtil().setWidth(100),
|
|
|
|
631
|
- padding: EdgeInsets.symmetric(
|
|
|
|
632
|
- horizontal: ScreenUtil().setWidth(20)),
|
|
|
|
633
|
- decoration: BoxDecoration(
|
|
|
|
634
|
- borderRadius:
|
|
|
|
635
|
- BorderRadius.circular(ScreenUtil().setWidth(30)),
|
|
|
|
636
|
- color: Color.fromRGBO(239, 239, 239, 1)),
|
|
|
|
637
|
- child: DropdownButton(
|
|
|
|
638
|
- underline: SizedBox(),
|
|
|
|
639
|
- value: dropValue,
|
|
|
|
640
|
- isDense: true,
|
|
|
|
641
|
- style: TextStyle(
|
|
|
|
642
|
- color: MyColours.color_333333,
|
|
|
|
643
|
- fontSize: ScreenUtil().setSp(28)),
|
|
|
|
644
|
- focusColor: MyColours.color_199095,
|
|
|
|
645
|
- items: _dropdownMenuItem(),
|
|
|
|
646
|
- icon: Row(
|
|
|
|
647
|
- children: [
|
|
|
|
648
|
- HEmptyView(10),
|
|
|
|
649
|
- Image.asset(
|
|
|
|
650
|
- Utils.getImgPath('c_arrow_down'),
|
|
|
|
651
|
- width: ScreenUtil().setWidth(24),
|
|
|
|
652
|
- // height: ScreenUtil().setWidth(10),
|
|
|
|
653
|
- )
|
|
|
|
654
|
- ],
|
|
|
|
655
|
- ),
|
|
|
|
656
|
- onChanged: (value) {
|
|
|
|
657
|
- print(value);
|
|
|
|
658
|
- state(() => dropValue = value);
|
|
|
|
659
|
- }))),
|
|
|
|
660
|
- HEmptyView(20),
|
|
|
|
661
|
- Container(
|
|
|
|
662
|
- // padding: EdgeInsets.symmetric(
|
|
|
|
663
|
- // horizontal: ScreenUtil().setWidth(20),
|
|
|
|
664
|
- // ),
|
|
|
|
665
|
- width: ScreenUtil().setWidth(160),
|
|
|
|
666
|
- height: ScreenUtil().setWidth(50),
|
|
|
|
667
|
- // alignment: Alignment.center,
|
|
|
|
668
|
- decoration: BoxDecoration(
|
|
|
|
669
|
- border: Border(
|
|
|
|
670
|
- bottom: BorderSide(
|
|
|
|
671
|
- color: Color.fromRGBO(180, 180, 180, 1),
|
|
|
|
672
|
- width: ScreenUtil().setWidth(2))),
|
|
|
|
673
|
- ),
|
|
|
|
674
|
- child: Material(
|
|
|
|
675
|
- color: MyColours.color_ffffff,
|
|
|
|
676
|
- child: TextField(
|
|
|
|
677
|
- maxLines: 1,
|
|
|
|
678
|
- controller: customerProvider.controller,
|
|
|
|
679
|
- // focusNode: _focusNode,
|
|
|
|
680
|
- // autofocus: true,
|
607
|
+// // _scrollCrl.position
|
|
|
|
608
|
+// // .didUpdateScrollPositionBy(2); //这里触发更新滚动条
|
|
|
|
609
|
+// }))),
|
|
|
|
610
|
+// VEmptyView(10),
|
|
|
|
611
|
+// Material(
|
|
|
|
612
|
+// child: Offstage(
|
|
|
|
613
|
+// offstage: showDrop,
|
|
|
|
614
|
+// child: _selectWidget(timeTilte, (index) {
|
|
|
|
615
|
+// print(timeTilte[index]);
|
|
|
|
616
|
+// state(() {
|
|
|
|
617
|
+// showDrop = !showDrop;
|
|
|
|
618
|
+// // _provider.currentIndex = index;
|
|
|
|
619
|
+// dropValue = timeTilte[index];
|
|
|
|
620
|
+// });
|
|
|
|
621
|
+// }),
|
|
|
|
622
|
+// )),
|
|
|
|
623
|
+// ]),
|
|
|
|
624
|
+// VEmptyView(50),
|
|
|
|
625
|
+// */
|
|
|
|
626
|
+// Row(children: [
|
|
|
|
627
|
+// Material(
|
|
|
|
628
|
+// child: Container(
|
|
|
|
629
|
+// height: ScreenUtil().setWidth(50),
|
|
|
|
630
|
+// // width: ScreenUtil().setWidth(100),
|
|
|
|
631
|
+// padding: EdgeInsets.symmetric(
|
|
|
|
632
|
+// horizontal: ScreenUtil().setWidth(20)),
|
|
|
|
633
|
+// decoration: BoxDecoration(
|
|
|
|
634
|
+// borderRadius:
|
|
|
|
635
|
+// BorderRadius.circular(ScreenUtil().setWidth(30)),
|
|
|
|
636
|
+// color: Color.fromRGBO(239, 239, 239, 1)),
|
|
|
|
637
|
+// child: DropdownButton(
|
|
|
|
638
|
+// underline: SizedBox(),
|
|
|
|
639
|
+// value: dropValue,
|
|
|
|
640
|
+// isDense: true,
|
|
|
|
641
|
+// style: TextStyle(
|
|
|
|
642
|
+// color: MyColours.color_333333,
|
|
|
|
643
|
+// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
644
|
+// focusColor: MyColours.color_199095,
|
|
|
|
645
|
+// items: _dropdownMenuItem(),
|
|
|
|
646
|
+// icon: Row(
|
|
|
|
647
|
+// children: [
|
|
|
|
648
|
+// HEmptyView(10),
|
|
|
|
649
|
+// Image.asset(
|
|
|
|
650
|
+// Utils.getImgPath('c_arrow_down'),
|
|
|
|
651
|
+// width: ScreenUtil().setWidth(24),
|
|
|
|
652
|
+// // height: ScreenUtil().setWidth(10),
|
|
|
|
653
|
+// )
|
|
|
|
654
|
+// ],
|
|
|
|
655
|
+// ),
|
|
|
|
656
|
+// onChanged: (value) {
|
|
|
|
657
|
+// print(value);
|
|
|
|
658
|
+// state(() => dropValue = value);
|
|
|
|
659
|
+// }))),
|
|
|
|
660
|
+// HEmptyView(20),
|
|
|
|
661
|
+// Container(
|
|
|
|
662
|
+// // padding: EdgeInsets.symmetric(
|
|
|
|
663
|
+// // horizontal: ScreenUtil().setWidth(20),
|
|
|
|
664
|
+// // ),
|
|
|
|
665
|
+// width: ScreenUtil().setWidth(160),
|
|
|
|
666
|
+// height: ScreenUtil().setWidth(50),
|
|
|
|
667
|
+// // alignment: Alignment.center,
|
|
|
|
668
|
+// decoration: BoxDecoration(
|
|
|
|
669
|
+// border: Border(
|
|
|
|
670
|
+// bottom: BorderSide(
|
|
|
|
671
|
+// color: Color.fromRGBO(180, 180, 180, 1),
|
|
|
|
672
|
+// width: ScreenUtil().setWidth(2))),
|
|
|
|
673
|
+// ),
|
|
|
|
674
|
+// child: Material(
|
|
|
|
675
|
+// color: MyColours.color_ffffff,
|
|
|
|
676
|
+// child: TextField(
|
|
|
|
677
|
+// maxLines: 1,
|
|
|
|
678
|
+// controller: customerProvider.controller,
|
|
|
|
679
|
+// // focusNode: _focusNode,
|
|
|
|
680
|
+// // autofocus: true,
|
|
681
|
|
681
|
|
|
682
|
- style: TextStyle(
|
|
|
|
683
|
- color: MyColours.color_333333,
|
|
|
|
684
|
- fontSize: ScreenUtil().setSp(26)),
|
|
|
|
685
|
- // textAlignVertical: TextAlignVertical.center,
|
|
|
|
686
|
- decoration: InputDecoration(
|
|
|
|
687
|
- // hintText: "xxx",
|
|
|
|
688
|
- hintStyle: TextStyle(
|
|
|
|
689
|
- color: MyColours.color_999999,
|
|
|
|
690
|
- fontSize: ScreenUtil().setSp(26),
|
|
|
|
691
|
- ),
|
|
|
|
692
|
- // isCollapsed:
|
|
|
|
693
|
- // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
694
|
- border: OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
695
|
- contentPadding: EdgeInsets.zero,
|
|
|
|
696
|
- ),
|
|
|
|
697
|
- keyboardType: TextInputType.text,
|
|
|
|
698
|
- textInputAction: TextInputAction.done,
|
682
|
+// style: TextStyle(
|
|
|
|
683
|
+// color: MyColours.color_333333,
|
|
|
|
684
|
+// fontSize: ScreenUtil().setSp(26)),
|
|
|
|
685
|
+// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
686
|
+// decoration: InputDecoration(
|
|
|
|
687
|
+// // hintText: "xxx",
|
|
|
|
688
|
+// hintStyle: TextStyle(
|
|
|
|
689
|
+// color: MyColours.color_999999,
|
|
|
|
690
|
+// fontSize: ScreenUtil().setSp(26),
|
|
|
|
691
|
+// ),
|
|
|
|
692
|
+// // isCollapsed:
|
|
|
|
693
|
+// // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
694
|
+// border: OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
695
|
+// contentPadding: EdgeInsets.zero,
|
|
|
|
696
|
+// ),
|
|
|
|
697
|
+// keyboardType: TextInputType.text,
|
|
|
|
698
|
+// textInputAction: TextInputAction.done,
|
|
699
|
|
699
|
|
|
700
|
- onChanged: (value) {
|
|
|
|
701
|
- // setState(() {});
|
|
|
|
702
|
- // _searchSellerLocation();
|
|
|
|
703
|
- customerProvider.searchData(value);
|
|
|
|
704
|
- },
|
|
|
|
705
|
- onEditingComplete: () {
|
|
|
|
706
|
- FocusScope.of(context)
|
|
|
|
707
|
- .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
708
|
- // contantShowModel.searchData(
|
|
|
|
709
|
- // contantShowModel.controller.text);
|
|
|
|
710
|
- // _searchSellerLocation();
|
|
|
|
711
|
- // _focusNode.unfocus();
|
|
|
|
712
|
- },
|
|
|
|
713
|
- ),
|
|
|
|
714
|
- )),
|
|
|
|
715
|
- HEmptyView(20),
|
|
|
|
716
|
- _textWidget('次预订', MyColours.color_333333, FontWeight.normal, 24),
|
|
|
|
717
|
- ]),
|
|
|
|
718
|
- VEmptyView(30),
|
|
|
|
719
|
- ],
|
|
|
|
720
|
- );
|
|
|
|
721
|
- }
|
700
|
+// onChanged: (value) {
|
|
|
|
701
|
+// // setState(() {});
|
|
|
|
702
|
+// // _searchSellerLocation();
|
|
|
|
703
|
+// customerProvider.searchData(value);
|
|
|
|
704
|
+// },
|
|
|
|
705
|
+// onEditingComplete: () {
|
|
|
|
706
|
+// FocusScope.of(context)
|
|
|
|
707
|
+// .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
708
|
+// // contantShowModel.searchData(
|
|
|
|
709
|
+// // contantShowModel.controller.text);
|
|
|
|
710
|
+// // _searchSellerLocation();
|
|
|
|
711
|
+// // _focusNode.unfocus();
|
|
|
|
712
|
+// },
|
|
|
|
713
|
+// ),
|
|
|
|
714
|
+// )),
|
|
|
|
715
|
+// HEmptyView(20),
|
|
|
|
716
|
+// _textWidget('次预订', MyColours.color_333333, FontWeight.normal, 24),
|
|
|
|
717
|
+// ]),
|
|
|
|
718
|
+// VEmptyView(30),
|
|
|
|
719
|
+// ],
|
|
|
|
720
|
+// );
|
|
|
|
721
|
+// }
|
|
722
|
|
722
|
|
|
723
|
- _buttonChoose(String title, ClickCallback callback) {
|
|
|
|
724
|
- return InkWell(
|
|
|
|
725
|
- onTap: () {
|
|
|
|
726
|
- callback(title);
|
|
|
|
727
|
- },
|
|
|
|
728
|
- child: Container(
|
|
|
|
729
|
- padding: EdgeInsets.symmetric(
|
|
|
|
730
|
- horizontal: ScreenUtil().setWidth(20),
|
|
|
|
731
|
- vertical: ScreenUtil().setWidth(10)),
|
|
|
|
732
|
- height: ScreenUtil().setWidth(60),
|
|
|
|
733
|
- decoration: BoxDecoration(
|
|
|
|
734
|
- // border: Border.all(
|
|
|
|
735
|
- // width: ScreenUtil().setWidth(2),
|
|
|
|
736
|
- // color: MyColours.color_199095),
|
|
|
|
737
|
- borderRadius: BorderRadius.circular(ScreenUtil().setWidth(30))),
|
|
|
|
738
|
- child: Row(
|
|
|
|
739
|
- children: [
|
|
|
|
740
|
- Text(
|
|
|
|
741
|
- title,
|
|
|
|
742
|
- style: TextStyle(
|
|
|
|
743
|
- color: title == '时间(选填)' || title == '(选填)'
|
|
|
|
744
|
- ? MyColours.color_999999
|
|
|
|
745
|
- : MyColours.color_199095,
|
|
|
|
746
|
- fontSize: ScreenUtil().setWidth(28)),
|
|
|
|
747
|
- ),
|
|
|
|
748
|
- HEmptyView(10),
|
|
|
|
749
|
- Image.asset(
|
|
|
|
750
|
- Utils.getImgPath('enter_order_arrow'),
|
|
|
|
751
|
- width: ScreenUtil().setWidth(20),
|
|
|
|
752
|
- height: ScreenUtil().setWidth(10),
|
|
|
|
753
|
- )
|
|
|
|
754
|
- ],
|
|
|
|
755
|
- )));
|
|
|
|
756
|
- }
|
723
|
+// _buttonChoose(String title, ClickCallback callback) {
|
|
|
|
724
|
+// return InkWell(
|
|
|
|
725
|
+// onTap: () {
|
|
|
|
726
|
+// callback(title);
|
|
|
|
727
|
+// },
|
|
|
|
728
|
+// child: Container(
|
|
|
|
729
|
+// padding: EdgeInsets.symmetric(
|
|
|
|
730
|
+// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
731
|
+// vertical: ScreenUtil().setWidth(10)),
|
|
|
|
732
|
+// height: ScreenUtil().setWidth(60),
|
|
|
|
733
|
+// decoration: BoxDecoration(
|
|
|
|
734
|
+// // border: Border.all(
|
|
|
|
735
|
+// // width: ScreenUtil().setWidth(2),
|
|
|
|
736
|
+// // color: MyColours.color_199095),
|
|
|
|
737
|
+// borderRadius: BorderRadius.circular(ScreenUtil().setWidth(30))),
|
|
|
|
738
|
+// child: Row(
|
|
|
|
739
|
+// children: [
|
|
|
|
740
|
+// Text(
|
|
|
|
741
|
+// title,
|
|
|
|
742
|
+// style: TextStyle(
|
|
|
|
743
|
+// color: title == '时间(选填)' || title == '(选填)'
|
|
|
|
744
|
+// ? MyColours.color_999999
|
|
|
|
745
|
+// : MyColours.color_199095,
|
|
|
|
746
|
+// fontSize: ScreenUtil().setWidth(28)),
|
|
|
|
747
|
+// ),
|
|
|
|
748
|
+// HEmptyView(10),
|
|
|
|
749
|
+// Image.asset(
|
|
|
|
750
|
+// Utils.getImgPath('enter_order_arrow'),
|
|
|
|
751
|
+// width: ScreenUtil().setWidth(20),
|
|
|
|
752
|
+// height: ScreenUtil().setWidth(10),
|
|
|
|
753
|
+// )
|
|
|
|
754
|
+// ],
|
|
|
|
755
|
+// )));
|
|
|
|
756
|
+// }
|
|
757
|
|
757
|
|
|
758
|
- /// 高级筛选输入框
|
|
|
|
759
|
- Widget _textFeildWidget() {
|
|
|
|
760
|
- return Container(
|
|
|
|
761
|
- padding: EdgeInsets.symmetric(
|
|
|
|
762
|
- horizontal: ScreenUtil().setWidth(20),
|
|
|
|
763
|
- ),
|
|
|
|
764
|
- height: ScreenUtil().setWidth(50),
|
|
|
|
765
|
- // alignment: Alignment.center,
|
|
|
|
766
|
- decoration: BoxDecoration(
|
|
|
|
767
|
- color: Color.fromRGBO(239, 239, 239, 1),
|
|
|
|
768
|
- borderRadius: BorderRadius.circular(ScreenUtil().setWidth(30))),
|
|
|
|
769
|
- child: Material(
|
|
|
|
770
|
- color: Color.fromRGBO(239, 239, 239, 1),
|
|
|
|
771
|
- child: Row(children: [
|
|
|
|
772
|
- Expanded(
|
|
|
|
773
|
- child: TextField(
|
|
|
|
774
|
- maxLines: 1,
|
|
|
|
775
|
- controller: customerProvider.controller,
|
|
|
|
776
|
- // focusNode: _focusNode,
|
|
|
|
777
|
- // autofocus: true,
|
758
|
+// /// 高级筛选输入框
|
|
|
|
759
|
+// Widget _textFeildWidget() {
|
|
|
|
760
|
+// return Container(
|
|
|
|
761
|
+// padding: EdgeInsets.symmetric(
|
|
|
|
762
|
+// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
763
|
+// ),
|
|
|
|
764
|
+// height: ScreenUtil().setWidth(50),
|
|
|
|
765
|
+// // alignment: Alignment.center,
|
|
|
|
766
|
+// decoration: BoxDecoration(
|
|
|
|
767
|
+// color: Color.fromRGBO(239, 239, 239, 1),
|
|
|
|
768
|
+// borderRadius: BorderRadius.circular(ScreenUtil().setWidth(30))),
|
|
|
|
769
|
+// child: Material(
|
|
|
|
770
|
+// color: Color.fromRGBO(239, 239, 239, 1),
|
|
|
|
771
|
+// child: Row(children: [
|
|
|
|
772
|
+// Expanded(
|
|
|
|
773
|
+// child: TextField(
|
|
|
|
774
|
+// maxLines: 1,
|
|
|
|
775
|
+// controller: customerProvider.controller,
|
|
|
|
776
|
+// // focusNode: _focusNode,
|
|
|
|
777
|
+// // autofocus: true,
|
|
778
|
|
778
|
|
|
779
|
- style: TextStyle(
|
|
|
|
780
|
- color: MyColours.color_333333,
|
|
|
|
781
|
- fontSize: ScreenUtil().setSp(26)),
|
|
|
|
782
|
- // textAlignVertical: TextAlignVertical.center,
|
|
|
|
783
|
- decoration: InputDecoration(
|
|
|
|
784
|
- hintText: "xxx",
|
|
|
|
785
|
- hintStyle: TextStyle(
|
|
|
|
786
|
- color: MyColours.color_999999,
|
|
|
|
787
|
- fontSize: ScreenUtil().setSp(26),
|
|
|
|
788
|
- ),
|
|
|
|
789
|
- // isCollapsed:
|
|
|
|
790
|
- // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
791
|
- border: OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
792
|
- contentPadding: EdgeInsets.zero,
|
|
|
|
793
|
- ),
|
|
|
|
794
|
- keyboardType: TextInputType.text,
|
|
|
|
795
|
- textInputAction: TextInputAction.done,
|
779
|
+// style: TextStyle(
|
|
|
|
780
|
+// color: MyColours.color_333333,
|
|
|
|
781
|
+// fontSize: ScreenUtil().setSp(26)),
|
|
|
|
782
|
+// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
783
|
+// decoration: InputDecoration(
|
|
|
|
784
|
+// hintText: "xxx",
|
|
|
|
785
|
+// hintStyle: TextStyle(
|
|
|
|
786
|
+// color: MyColours.color_999999,
|
|
|
|
787
|
+// fontSize: ScreenUtil().setSp(26),
|
|
|
|
788
|
+// ),
|
|
|
|
789
|
+// // isCollapsed:
|
|
|
|
790
|
+// // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
791
|
+// border: OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
792
|
+// contentPadding: EdgeInsets.zero,
|
|
|
|
793
|
+// ),
|
|
|
|
794
|
+// keyboardType: TextInputType.text,
|
|
|
|
795
|
+// textInputAction: TextInputAction.done,
|
|
796
|
|
796
|
|
|
797
|
- onChanged: (value) {
|
|
|
|
798
|
- // setState(() {});
|
|
|
|
799
|
- // _searchSellerLocation();
|
|
|
|
800
|
- customerProvider.searchData(value);
|
|
|
|
801
|
- },
|
|
|
|
802
|
- onEditingComplete: () {
|
|
|
|
803
|
- FocusScope.of(context)
|
|
|
|
804
|
- .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
805
|
- // contantShowModel.searchData(
|
|
|
|
806
|
- // contantShowModel.controller.text);
|
|
|
|
807
|
- // _searchSellerLocation();
|
|
|
|
808
|
- // _focusNode.unfocus();
|
|
|
|
809
|
- },
|
|
|
|
810
|
- ),
|
|
|
|
811
|
- ),
|
|
|
|
812
|
- _textWidget('天', MyColours.color_333333, FontWeight.normal, 24),
|
|
|
|
813
|
- ])));
|
|
|
|
814
|
- }
|
797
|
+// onChanged: (value) {
|
|
|
|
798
|
+// // setState(() {});
|
|
|
|
799
|
+// // _searchSellerLocation();
|
|
|
|
800
|
+// customerProvider.searchData(value);
|
|
|
|
801
|
+// },
|
|
|
|
802
|
+// onEditingComplete: () {
|
|
|
|
803
|
+// FocusScope.of(context)
|
|
|
|
804
|
+// .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
805
|
+// // contantShowModel.searchData(
|
|
|
|
806
|
+// // contantShowModel.controller.text);
|
|
|
|
807
|
+// // _searchSellerLocation();
|
|
|
|
808
|
+// // _focusNode.unfocus();
|
|
|
|
809
|
+// },
|
|
|
|
810
|
+// ),
|
|
|
|
811
|
+// ),
|
|
|
|
812
|
+// _textWidget('天', MyColours.color_333333, FontWeight.normal, 24),
|
|
|
|
813
|
+// ])));
|
|
|
|
814
|
+// }
|
|
815
|
|
815
|
|
|
816
|
- ///筛选布局
|
|
|
|
817
|
- Widget _filterWidget(
|
|
|
|
818
|
- StateSetter state,
|
|
|
|
819
|
- VoidCallback onPressedReset,
|
|
|
|
820
|
- VoidCallback onPressedComplete,
|
|
|
|
821
|
- ) {
|
|
|
|
822
|
- return Container(
|
|
|
|
823
|
- padding: EdgeInsets.symmetric(
|
|
|
|
824
|
- // horizontal: ScreenUtil().setWidth(30),
|
|
|
|
825
|
- ),
|
|
|
|
826
|
- // height: ScreenUtil().setWidth(100),
|
|
|
|
827
|
- margin: EdgeInsets.only(
|
|
|
|
828
|
- top: ScreenUtil().setWidth(92 + 52 + 30 * 3 + 90) +
|
|
|
|
829
|
- ScreenUtil.statusBarHeight),
|
|
|
|
830
|
- color: Color.fromRGBO(00, 00, 00, 0.49),
|
|
|
|
831
|
- child: Align(
|
|
|
|
832
|
- alignment: Alignment.topCenter,
|
|
|
|
833
|
- child: Container(
|
|
|
|
834
|
- decoration: BoxDecoration(
|
|
|
|
835
|
- color: MyColours.color_ffffff,
|
|
|
|
836
|
- borderRadius: BorderRadius.only(
|
|
|
|
837
|
- bottomRight: Radius.circular(ScreenUtil().setWidth(20)),
|
|
|
|
838
|
- bottomLeft: Radius.circular(ScreenUtil().setWidth(20)))),
|
|
|
|
839
|
- margin: EdgeInsets.only(
|
|
|
|
840
|
- left: ScreenUtil().setWidth(40),
|
|
|
|
841
|
- bottom: ScreenUtil().setWidth(140),
|
|
|
|
842
|
- right: ScreenUtil().setWidth(40)),
|
|
|
|
843
|
- padding:
|
|
|
|
844
|
- EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
845
|
- child: Column(
|
|
|
|
846
|
- children: [
|
|
|
|
847
|
- Expanded(
|
|
|
|
848
|
- child: Scrollbar(
|
|
|
|
849
|
- isAlwaysShown: true, //设置滚动条常亮
|
|
|
|
850
|
- controller: _scrollCrl, //必须设置一个controller
|
816
|
+// ///筛选布局
|
|
|
|
817
|
+// Widget _filterWidget(
|
|
|
|
818
|
+// StateSetter state,
|
|
|
|
819
|
+// VoidCallback onPressedReset,
|
|
|
|
820
|
+// VoidCallback onPressedComplete,
|
|
|
|
821
|
+// ) {
|
|
|
|
822
|
+// return Container(
|
|
|
|
823
|
+// padding: EdgeInsets.symmetric(
|
|
|
|
824
|
+// // horizontal: ScreenUtil().setWidth(30),
|
|
|
|
825
|
+// ),
|
|
|
|
826
|
+// // height: ScreenUtil().setWidth(100),
|
|
|
|
827
|
+// margin: EdgeInsets.only(
|
|
|
|
828
|
+// top: ScreenUtil().setWidth(92 + 52 + 30 * 3 + 90) +
|
|
|
|
829
|
+// ScreenUtil.statusBarHeight),
|
|
|
|
830
|
+// color: Color.fromRGBO(00, 00, 00, 0.49),
|
|
|
|
831
|
+// child: Align(
|
|
|
|
832
|
+// alignment: Alignment.topCenter,
|
|
|
|
833
|
+// child: Container(
|
|
|
|
834
|
+// decoration: BoxDecoration(
|
|
|
|
835
|
+// color: MyColours.color_ffffff,
|
|
|
|
836
|
+// borderRadius: BorderRadius.only(
|
|
|
|
837
|
+// bottomRight: Radius.circular(ScreenUtil().setWidth(20)),
|
|
|
|
838
|
+// bottomLeft: Radius.circular(ScreenUtil().setWidth(20)))),
|
|
|
|
839
|
+// margin: EdgeInsets.only(
|
|
|
|
840
|
+// left: ScreenUtil().setWidth(40),
|
|
|
|
841
|
+// bottom: ScreenUtil().setWidth(140),
|
|
|
|
842
|
+// right: ScreenUtil().setWidth(40)),
|
|
|
|
843
|
+// padding:
|
|
|
|
844
|
+// EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
845
|
+// child: Column(
|
|
|
|
846
|
+// children: [
|
|
|
|
847
|
+// Expanded(
|
|
|
|
848
|
+// child: Scrollbar(
|
|
|
|
849
|
+// isAlwaysShown: true, //设置滚动条常亮
|
|
|
|
850
|
+// controller: _scrollCrl, //必须设置一个controller
|
|
851
|
|
851
|
|
|
852
|
- ///添加进度条
|
|
|
|
853
|
- child: SingleChildScrollView(
|
|
|
|
854
|
- controller: _scrollCrl,
|
|
|
|
855
|
- // primary: true,
|
|
|
|
856
|
- // reverse: true,
|
|
|
|
857
|
- // physics: BouncingScrollPhysics(),
|
|
|
|
858
|
- // padding: EdgeInsets.only(
|
|
|
|
859
|
- // bottom:
|
|
|
|
860
|
- // MediaQuery.of(context).viewInsets.bottom),
|
|
|
|
861
|
- child: Column(
|
|
|
|
862
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
863
|
- children: [
|
|
|
|
864
|
- VEmptyView(20),
|
|
|
|
865
|
- _managerWidget(),
|
|
|
|
866
|
- VEmptyView(30),
|
|
|
|
867
|
- _activityWidget(),
|
|
|
|
868
|
- VEmptyView(30),
|
|
|
|
869
|
- _labelWidget(),
|
|
|
|
870
|
- VEmptyView(30),
|
|
|
|
871
|
- _advancedFilterWidget(state)
|
|
|
|
872
|
- ],
|
|
|
|
873
|
- ),
|
|
|
|
874
|
- ))),
|
|
|
|
875
|
- Row(
|
|
|
|
876
|
- children: [
|
|
|
|
877
|
- Container(
|
|
|
|
878
|
- width: ScreenUtil.screenWidthDp -
|
|
|
|
879
|
- ScreenUtil().setWidth(40 * 4),
|
|
|
|
880
|
- height: ScreenUtil().setWidth(100),
|
|
|
|
881
|
- // padding: EdgeInsets.symmetric(
|
|
|
|
882
|
- // horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
883
|
- decoration: BoxDecoration(
|
|
|
|
884
|
- boxShadow: [
|
|
|
|
885
|
- BoxShadow(
|
|
|
|
886
|
- color: MyColours.color_E0E0E0,
|
|
|
|
887
|
- blurRadius: ScreenUtil().setWidth(14))
|
|
|
|
888
|
- ],
|
|
|
|
889
|
- color: MyColours.color_ffffff,
|
|
|
|
890
|
- borderRadius: BorderRadius.circular(
|
|
|
|
891
|
- ScreenUtil().setWidth(20),
|
|
|
|
892
|
- )),
|
|
|
|
893
|
- child: Row(
|
|
|
|
894
|
- // mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
895
|
- // crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
896
|
- children: <Widget>[
|
|
|
|
897
|
- Expanded(
|
|
|
|
898
|
- flex: 1,
|
|
|
|
899
|
- child: Material(
|
|
|
|
900
|
- child: InkWell(
|
|
|
|
901
|
- onTap: onPressedReset,
|
|
|
|
902
|
- child: Container(
|
|
|
|
903
|
- decoration: BoxDecoration(
|
|
|
|
904
|
- color: MyColours.color_ffffff,
|
|
|
|
905
|
- borderRadius: BorderRadius.only(
|
|
|
|
906
|
- bottomLeft: Radius.circular(
|
|
|
|
907
|
- ScreenUtil().setWidth(20)),
|
|
|
|
908
|
- topLeft: Radius.circular(
|
|
|
|
909
|
- ScreenUtil().setWidth(20)),
|
|
|
|
910
|
- )),
|
|
|
|
911
|
- child: Align(
|
|
|
|
912
|
- alignment: Alignment.center,
|
|
|
|
913
|
- child: _textWidget(
|
|
|
|
914
|
- '重置',
|
|
|
|
915
|
- MyColours.color_333333,
|
|
|
|
916
|
- FontWeight.normal,
|
|
|
|
917
|
- 30),
|
|
|
|
918
|
- ),
|
|
|
|
919
|
- ),
|
|
|
|
920
|
- ))),
|
|
|
|
921
|
- Expanded(
|
|
|
|
922
|
- flex: 1,
|
|
|
|
923
|
- child: Material(
|
|
|
|
924
|
- child: InkWell(
|
|
|
|
925
|
- onTap: onPressedComplete,
|
|
|
|
926
|
- child: Container(
|
|
|
|
927
|
- decoration: BoxDecoration(
|
|
|
|
928
|
- color: MyColours.color_199095,
|
|
|
|
929
|
- borderRadius: BorderRadius.only(
|
|
|
|
930
|
- topRight: Radius.circular(
|
|
|
|
931
|
- ScreenUtil().setWidth(20)),
|
|
|
|
932
|
- bottomRight: Radius.circular(
|
|
|
|
933
|
- ScreenUtil().setWidth(20)),
|
|
|
|
934
|
- )),
|
|
|
|
935
|
- child: Align(
|
|
|
|
936
|
- alignment: Alignment.center,
|
|
|
|
937
|
- child: _textWidget(
|
|
|
|
938
|
- '确定',
|
|
|
|
939
|
- MyColours.color_ffffff,
|
|
|
|
940
|
- FontWeight.normal,
|
|
|
|
941
|
- 30),
|
|
|
|
942
|
- ),
|
|
|
|
943
|
- ),
|
|
|
|
944
|
- )))
|
|
|
|
945
|
- ],
|
|
|
|
946
|
- ),
|
|
|
|
947
|
- ),
|
|
|
|
948
|
- ],
|
|
|
|
949
|
- ),
|
|
|
|
950
|
- VEmptyView(30)
|
|
|
|
951
|
- ],
|
|
|
|
952
|
- ),
|
|
|
|
953
|
- )));
|
|
|
|
954
|
- }
|
852
|
+// ///添加进度条
|
|
|
|
853
|
+// child: SingleChildScrollView(
|
|
|
|
854
|
+// controller: _scrollCrl,
|
|
|
|
855
|
+// // primary: true,
|
|
|
|
856
|
+// // reverse: true,
|
|
|
|
857
|
+// // physics: BouncingScrollPhysics(),
|
|
|
|
858
|
+// // padding: EdgeInsets.only(
|
|
|
|
859
|
+// // bottom:
|
|
|
|
860
|
+// // MediaQuery.of(context).viewInsets.bottom),
|
|
|
|
861
|
+// child: Column(
|
|
|
|
862
|
+// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
863
|
+// children: [
|
|
|
|
864
|
+// VEmptyView(20),
|
|
|
|
865
|
+// _managerWidget(),
|
|
|
|
866
|
+// VEmptyView(30),
|
|
|
|
867
|
+// _activityWidget(),
|
|
|
|
868
|
+// VEmptyView(30),
|
|
|
|
869
|
+// _labelWidget(),
|
|
|
|
870
|
+// VEmptyView(30),
|
|
|
|
871
|
+// _advancedFilterWidget(state)
|
|
|
|
872
|
+// ],
|
|
|
|
873
|
+// ),
|
|
|
|
874
|
+// ))),
|
|
|
|
875
|
+// Row(
|
|
|
|
876
|
+// children: [
|
|
|
|
877
|
+// Container(
|
|
|
|
878
|
+// width: ScreenUtil.screenWidthDp -
|
|
|
|
879
|
+// ScreenUtil().setWidth(40 * 4),
|
|
|
|
880
|
+// height: ScreenUtil().setWidth(100),
|
|
|
|
881
|
+// // padding: EdgeInsets.symmetric(
|
|
|
|
882
|
+// // horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
883
|
+// decoration: BoxDecoration(
|
|
|
|
884
|
+// boxShadow: [
|
|
|
|
885
|
+// BoxShadow(
|
|
|
|
886
|
+// color: MyColours.color_E0E0E0,
|
|
|
|
887
|
+// blurRadius: ScreenUtil().setWidth(14))
|
|
|
|
888
|
+// ],
|
|
|
|
889
|
+// color: MyColours.color_ffffff,
|
|
|
|
890
|
+// borderRadius: BorderRadius.circular(
|
|
|
|
891
|
+// ScreenUtil().setWidth(20),
|
|
|
|
892
|
+// )),
|
|
|
|
893
|
+// child: Row(
|
|
|
|
894
|
+// // mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
895
|
+// // crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
896
|
+// children: <Widget>[
|
|
|
|
897
|
+// Expanded(
|
|
|
|
898
|
+// flex: 1,
|
|
|
|
899
|
+// child: Material(
|
|
|
|
900
|
+// child: InkWell(
|
|
|
|
901
|
+// onTap: onPressedReset,
|
|
|
|
902
|
+// child: Container(
|
|
|
|
903
|
+// decoration: BoxDecoration(
|
|
|
|
904
|
+// color: MyColours.color_ffffff,
|
|
|
|
905
|
+// borderRadius: BorderRadius.only(
|
|
|
|
906
|
+// bottomLeft: Radius.circular(
|
|
|
|
907
|
+// ScreenUtil().setWidth(20)),
|
|
|
|
908
|
+// topLeft: Radius.circular(
|
|
|
|
909
|
+// ScreenUtil().setWidth(20)),
|
|
|
|
910
|
+// )),
|
|
|
|
911
|
+// child: Align(
|
|
|
|
912
|
+// alignment: Alignment.center,
|
|
|
|
913
|
+// child: _textWidget(
|
|
|
|
914
|
+// '重置',
|
|
|
|
915
|
+// MyColours.color_333333,
|
|
|
|
916
|
+// FontWeight.normal,
|
|
|
|
917
|
+// 30),
|
|
|
|
918
|
+// ),
|
|
|
|
919
|
+// ),
|
|
|
|
920
|
+// ))),
|
|
|
|
921
|
+// Expanded(
|
|
|
|
922
|
+// flex: 1,
|
|
|
|
923
|
+// child: Material(
|
|
|
|
924
|
+// child: InkWell(
|
|
|
|
925
|
+// onTap: onPressedComplete,
|
|
|
|
926
|
+// child: Container(
|
|
|
|
927
|
+// decoration: BoxDecoration(
|
|
|
|
928
|
+// color: MyColours.color_199095,
|
|
|
|
929
|
+// borderRadius: BorderRadius.only(
|
|
|
|
930
|
+// topRight: Radius.circular(
|
|
|
|
931
|
+// ScreenUtil().setWidth(20)),
|
|
|
|
932
|
+// bottomRight: Radius.circular(
|
|
|
|
933
|
+// ScreenUtil().setWidth(20)),
|
|
|
|
934
|
+// )),
|
|
|
|
935
|
+// child: Align(
|
|
|
|
936
|
+// alignment: Alignment.center,
|
|
|
|
937
|
+// child: _textWidget(
|
|
|
|
938
|
+// '确定',
|
|
|
|
939
|
+// MyColours.color_ffffff,
|
|
|
|
940
|
+// FontWeight.normal,
|
|
|
|
941
|
+// 30),
|
|
|
|
942
|
+// ),
|
|
|
|
943
|
+// ),
|
|
|
|
944
|
+// )))
|
|
|
|
945
|
+// ],
|
|
|
|
946
|
+// ),
|
|
|
|
947
|
+// ),
|
|
|
|
948
|
+// ],
|
|
|
|
949
|
+// ),
|
|
|
|
950
|
+// VEmptyView(30)
|
|
|
|
951
|
+// ],
|
|
|
|
952
|
+// ),
|
|
|
|
953
|
+// )));
|
|
|
|
954
|
+// }
|
|
955
|
|
955
|
|
|
956
|
- //构建筛选按钮
|
|
|
|
957
|
- List<Widget> _buildFilterItem(List<Map> data, bool round,
|
|
|
|
958
|
- {bool grayBack = false}) {
|
|
|
|
959
|
- List<Widget> items = [];
|
956
|
+// //构建筛选按钮
|
|
|
|
957
|
+// List<Widget> _buildFilterItem(List<Map> data, bool round,
|
|
|
|
958
|
+// {bool grayBack = false}) {
|
|
|
|
959
|
+// List<Widget> items = [];
|
|
960
|
|
960
|
|
|
961
|
- for (Map item in data) {
|
|
|
|
962
|
- items.add(Container(
|
|
|
|
963
|
- padding: EdgeInsets.symmetric(
|
|
|
|
964
|
- horizontal: ScreenUtil().setWidth(20),
|
|
|
|
965
|
- vertical: ScreenUtil().setWidth(6)),
|
|
|
|
966
|
- decoration: BoxDecoration(
|
|
|
|
967
|
- color: grayBack
|
|
|
|
968
|
- ? Color.fromRGBO(239, 239, 239, 1)
|
|
|
|
969
|
- : item['select']
|
|
|
|
970
|
- ? MyColours.color_199095
|
|
|
|
971
|
- : MyColours.color_ffffff,
|
|
|
|
972
|
- border: Border.all(
|
|
|
|
973
|
- color: grayBack
|
|
|
|
974
|
- ? Color.fromRGBO(239, 239, 239, 1)
|
|
|
|
975
|
- : item['select']
|
|
|
|
976
|
- ? MyColours.color_199095
|
|
|
|
977
|
- : round
|
|
|
|
978
|
- ? Color.fromRGBO(155, 155, 155, 1)
|
|
|
|
979
|
- : MyColours.color_199095,
|
|
|
|
980
|
- width: ScreenUtil().setWidth(2)),
|
|
|
|
981
|
- borderRadius: BorderRadius.circular(
|
|
|
|
982
|
- ScreenUtil().setWidth(round ? 30 : 10))),
|
|
|
|
983
|
- child: _textWidget(
|
|
|
|
984
|
- item['title'],
|
|
|
|
985
|
- grayBack
|
|
|
|
986
|
- ? MyColours.color_333333
|
|
|
|
987
|
- : item['select']
|
|
|
|
988
|
- ? MyColours.color_ffffff
|
|
|
|
989
|
- : round
|
|
|
|
990
|
- ? MyColours.color_333333
|
|
|
|
991
|
- : MyColours.color_199095,
|
|
|
|
992
|
- FontWeight.normal,
|
|
|
|
993
|
- 24)));
|
|
|
|
994
|
- }
|
|
|
|
995
|
- return items;
|
|
|
|
996
|
- }
|
961
|
+// for (Map item in data) {
|
|
|
|
962
|
+// items.add(Container(
|
|
|
|
963
|
+// padding: EdgeInsets.symmetric(
|
|
|
|
964
|
+// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
965
|
+// vertical: ScreenUtil().setWidth(6)),
|
|
|
|
966
|
+// decoration: BoxDecoration(
|
|
|
|
967
|
+// color: grayBack
|
|
|
|
968
|
+// ? Color.fromRGBO(239, 239, 239, 1)
|
|
|
|
969
|
+// : item['select']
|
|
|
|
970
|
+// ? MyColours.color_199095
|
|
|
|
971
|
+// : MyColours.color_ffffff,
|
|
|
|
972
|
+// border: Border.all(
|
|
|
|
973
|
+// color: grayBack
|
|
|
|
974
|
+// ? Color.fromRGBO(239, 239, 239, 1)
|
|
|
|
975
|
+// : item['select']
|
|
|
|
976
|
+// ? MyColours.color_199095
|
|
|
|
977
|
+// : round
|
|
|
|
978
|
+// ? Color.fromRGBO(155, 155, 155, 1)
|
|
|
|
979
|
+// : MyColours.color_199095,
|
|
|
|
980
|
+// width: ScreenUtil().setWidth(2)),
|
|
|
|
981
|
+// borderRadius: BorderRadius.circular(
|
|
|
|
982
|
+// ScreenUtil().setWidth(round ? 30 : 10))),
|
|
|
|
983
|
+// child: _textWidget(
|
|
|
|
984
|
+// item['title'],
|
|
|
|
985
|
+// grayBack
|
|
|
|
986
|
+// ? MyColours.color_333333
|
|
|
|
987
|
+// : item['select']
|
|
|
|
988
|
+// ? MyColours.color_ffffff
|
|
|
|
989
|
+// : round
|
|
|
|
990
|
+// ? MyColours.color_333333
|
|
|
|
991
|
+// : MyColours.color_199095,
|
|
|
|
992
|
+// FontWeight.normal,
|
|
|
|
993
|
+// 24)));
|
|
|
|
994
|
+// }
|
|
|
|
995
|
+// return items;
|
|
|
|
996
|
+// }
|
|
997
|
|
997
|
|
|
998
|
- @override
|
|
|
|
999
|
- Widget build(BuildContext context) {
|
|
|
|
1000
|
- customerProvider = Provider.of<CustomerProvider>(context, listen: true);
|
|
|
|
1001
|
- return Material(
|
|
|
|
1002
|
- child: InkWell(
|
|
|
|
1003
|
- onTap: () {
|
|
|
|
1004
|
- // FocusScope.of(context).requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
1005
|
- },
|
|
|
|
1006
|
- child: Scaffold(
|
|
|
|
1007
|
- resizeToAvoidBottomInset: false,
|
|
|
|
1008
|
- backgroundColor: MyColours.color_ffffff,
|
|
|
|
1009
|
- appBar: SystemAppBar(
|
|
|
|
1010
|
- '全店客户',
|
|
|
|
1011
|
- onTap: () {
|
|
|
|
1012
|
- Navigator.of(context).pop();
|
|
|
|
1013
|
- },
|
|
|
|
1014
|
- ),
|
|
|
|
1015
|
- body: SafeArea(
|
|
|
|
1016
|
- child: Column(children: [
|
|
|
|
1017
|
- _searchWidget(), _menuWidget(),
|
|
|
|
1018
|
- Expanded(child:
|
|
|
|
1019
|
- Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
1020
|
- if (model.pageState != PageState.Success) {
|
|
|
|
1021
|
- return ExceptionPage(
|
|
|
|
1022
|
- pageState: model.pageState,
|
|
|
|
1023
|
- callback: () {
|
|
|
|
1024
|
- model.pageState = PageState.Loading;
|
|
|
|
1025
|
- model.notifyListeners();
|
|
|
|
1026
|
- _getContantData();
|
|
|
|
1027
|
- },
|
|
|
|
1028
|
- emptyMsg: "暂时没有联系人哦",
|
|
|
|
1029
|
- emptyImg: "empty_search",
|
|
|
|
1030
|
- showMsg: "加载中,请稍后...",
|
|
|
|
1031
|
- );
|
|
|
|
1032
|
- } else {
|
|
|
|
1033
|
- return Column(children: [
|
|
|
|
1034
|
- Expanded(
|
|
|
|
1035
|
- child: TabBarView(
|
|
|
|
1036
|
- controller: tabController,
|
|
|
|
1037
|
- physics: NeverScrollableScrollPhysics(),
|
|
|
|
1038
|
- children: <Widget>[
|
|
|
|
1039
|
- ContactListPage(
|
|
|
|
1040
|
- contacts: model.userHistorysShow,
|
|
|
|
1041
|
- provider: customerProvider),
|
|
|
|
1042
|
- ContactListPage(
|
|
|
|
1043
|
- contacts: model.userHistorysShow,
|
|
|
|
1044
|
- provider: customerProvider),
|
|
|
|
1045
|
- ContactListPage(
|
|
|
|
1046
|
- contacts: model.userHistorysShow,
|
|
|
|
1047
|
- provider: customerProvider),
|
|
|
|
1048
|
- ContactListPage(
|
|
|
|
1049
|
- contacts: model.userHistorysShow,
|
|
|
|
1050
|
- provider: customerProvider),
|
|
|
|
1051
|
- ])),
|
|
|
|
1052
|
- customerProvider.pageState == PageState.Success
|
|
|
|
1053
|
- ? _selectContantWidget()
|
|
|
|
1054
|
- : SizedBox(),
|
|
|
|
1055
|
- ]);
|
|
|
|
1056
|
- }
|
|
|
|
1057
|
- })),
|
|
|
|
1058
|
- // _searchWidget(),
|
|
|
|
1059
|
- // Positioned(
|
|
|
|
1060
|
- // top: 0,
|
|
|
|
1061
|
- // left: ScreenUtil().setWidth(40),
|
|
|
|
1062
|
- // right: ScreenUtil().setWidth(40),
|
|
|
|
1063
|
- // child: _filterWidget())
|
|
|
|
1064
|
- // ],
|
|
|
|
1065
|
- ])),
|
|
|
|
1066
|
- )));
|
|
|
|
1067
|
- }
|
|
|
|
1068
|
-} |
998
|
+// @override
|
|
|
|
999
|
+// Widget build(BuildContext context) {
|
|
|
|
1000
|
+// customerProvider = Provider.of<CustomerProvider>(context, listen: true);
|
|
|
|
1001
|
+// return Material(
|
|
|
|
1002
|
+// child: InkWell(
|
|
|
|
1003
|
+// onTap: () {
|
|
|
|
1004
|
+// // FocusScope.of(context).requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
1005
|
+// },
|
|
|
|
1006
|
+// child: Scaffold(
|
|
|
|
1007
|
+// resizeToAvoidBottomInset: false,
|
|
|
|
1008
|
+// backgroundColor: MyColours.color_ffffff,
|
|
|
|
1009
|
+// appBar: SystemAppBar(
|
|
|
|
1010
|
+// '全店客户',
|
|
|
|
1011
|
+// onTap: () {
|
|
|
|
1012
|
+// Navigator.of(context).pop();
|
|
|
|
1013
|
+// },
|
|
|
|
1014
|
+// ),
|
|
|
|
1015
|
+// body: SafeArea(
|
|
|
|
1016
|
+// child: Column(children: [
|
|
|
|
1017
|
+// _searchWidget(), _menuWidget(),
|
|
|
|
1018
|
+// Expanded(child:
|
|
|
|
1019
|
+// Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
1020
|
+// if (model.pageState != PageState.Success) {
|
|
|
|
1021
|
+// return ExceptionPage(
|
|
|
|
1022
|
+// pageState: model.pageState,
|
|
|
|
1023
|
+// callback: () {
|
|
|
|
1024
|
+// model.pageState = PageState.Loading;
|
|
|
|
1025
|
+// model.notifyListeners();
|
|
|
|
1026
|
+// _getContantData();
|
|
|
|
1027
|
+// },
|
|
|
|
1028
|
+// emptyMsg: "暂时没有联系人哦",
|
|
|
|
1029
|
+// emptyImg: "empty_search",
|
|
|
|
1030
|
+// showMsg: "加载中,请稍后...",
|
|
|
|
1031
|
+// );
|
|
|
|
1032
|
+// } else {
|
|
|
|
1033
|
+// return Column(children: [
|
|
|
|
1034
|
+// Expanded(
|
|
|
|
1035
|
+// child: TabBarView(
|
|
|
|
1036
|
+// controller: tabController,
|
|
|
|
1037
|
+// physics: NeverScrollableScrollPhysics(),
|
|
|
|
1038
|
+// children: <Widget>[
|
|
|
|
1039
|
+// ContactListPage(
|
|
|
|
1040
|
+// contacts: model.userHistorysShow,
|
|
|
|
1041
|
+// provider: customerProvider),
|
|
|
|
1042
|
+// ContactListPage(
|
|
|
|
1043
|
+// contacts: model.userHistorysShow,
|
|
|
|
1044
|
+// provider: customerProvider),
|
|
|
|
1045
|
+// ContactListPage(
|
|
|
|
1046
|
+// contacts: model.userHistorysShow,
|
|
|
|
1047
|
+// provider: customerProvider),
|
|
|
|
1048
|
+// ContactListPage(
|
|
|
|
1049
|
+// contacts: model.userHistorysShow,
|
|
|
|
1050
|
+// provider: customerProvider),
|
|
|
|
1051
|
+// ])),
|
|
|
|
1052
|
+// customerProvider.pageState == PageState.Success
|
|
|
|
1053
|
+// ? _selectContantWidget()
|
|
|
|
1054
|
+// : SizedBox(),
|
|
|
|
1055
|
+// ]);
|
|
|
|
1056
|
+// }
|
|
|
|
1057
|
+// })),
|
|
|
|
1058
|
+// // _searchWidget(),
|
|
|
|
1059
|
+// // Positioned(
|
|
|
|
1060
|
+// // top: 0,
|
|
|
|
1061
|
+// // left: ScreenUtil().setWidth(40),
|
|
|
|
1062
|
+// // right: ScreenUtil().setWidth(40),
|
|
|
|
1063
|
+// // child: _filterWidget())
|
|
|
|
1064
|
+// // ],
|
|
|
|
1065
|
+// ])),
|
|
|
|
1066
|
+// )));
|
|
|
|
1067
|
+// }
|
|
|
|
1068
|
+// } |