|
...
|
...
|
@@ -30,6 +30,7 @@ import 'package:provider/provider.dart'; |
|
|
|
|
|
|
|
import '../../../../provider/collect_store_provider.dart';
|
|
|
|
import '../../../../utils/dialog_util.dart';
|
|
|
|
import '../../../../utils/screen_util.dart';
|
|
|
|
|
|
|
|
typedef ClickCallback = void Function(dynamic value);
|
|
|
|
typedef ClickCall = void Function(FilterBtnModel value);
|
|
...
|
...
|
@@ -435,7 +436,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
boxShadow: [
|
|
|
|
BoxShadow(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
blurRadius: ScreenUtil().setWidth(14))
|
|
|
|
],
|
|
|
|
borderRadius: BorderRadius.only(
|
|
...
|
...
|
@@ -464,7 +465,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
'全选',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
color: MyColours.color_333333),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
],
|
|
...
|
...
|
@@ -578,7 +579,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
// autofocus: true,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(26)),
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
decoration: InputDecoration(
|
|
...
|
...
|
@@ -967,7 +968,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
_textWidget('客户经理', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
_textWidget('客户经理', MyColours.color_515151, FontWeight.bold, 28),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
state(() {
|
|
...
|
...
|
@@ -1001,18 +1002,21 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(30),
|
|
|
|
Wrap(
|
|
|
|
spacing: ScreenUtil().setWidth(20),
|
|
|
|
runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
children: _buildFilterItem(customerProvider.filterManageList, false,
|
|
|
|
(FilterBtnModel item) {
|
|
|
|
state(() {
|
|
|
|
item.select = !item.select;
|
|
|
|
});
|
|
|
|
_getUid();
|
|
|
|
customerProvider.getCheckmanageSelAll();
|
|
|
|
})),
|
|
|
|
VEmptyView(20),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(10)),
|
|
|
|
child: Wrap(
|
|
|
|
spacing: ScreenUtil().setWidth(20),
|
|
|
|
runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
children:
|
|
|
|
_buildFilterItem(customerProvider.filterManageList, false,
|
|
|
|
(FilterBtnModel item) {
|
|
|
|
state(() {
|
|
|
|
item.select = !item.select;
|
|
|
|
});
|
|
|
|
_getUid();
|
|
|
|
customerProvider.getCheckmanageSelAll();
|
|
|
|
}))),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
...
|
...
|
@@ -1025,7 +1029,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
_textWidget('活跃度', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
_textWidget('活跃度', MyColours.color_515151, FontWeight.bold, 28),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
state(() {
|
|
...
|
...
|
@@ -1053,32 +1057,35 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(30),
|
|
|
|
Wrap(
|
|
|
|
spacing: ScreenUtil().setWidth(20),
|
|
|
|
runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
children: _buildFilterItem(customerProvider.filterHydList, false,
|
|
|
|
(FilterBtnModel item) {
|
|
|
|
state(() {
|
|
|
|
item.select = !item.select;
|
|
|
|
VEmptyView(20),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(10)),
|
|
|
|
child: Wrap(
|
|
|
|
spacing: ScreenUtil().setWidth(20),
|
|
|
|
runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
children:
|
|
|
|
_buildFilterItem(customerProvider.filterHydList, false,
|
|
|
|
(FilterBtnModel item) {
|
|
|
|
state(() {
|
|
|
|
item.select = !item.select;
|
|
|
|
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
customerProvider.getCheckhydSelAll();
|
|
|
|
// state(() {
|
|
|
|
// item.select = !item.select;
|
|
|
|
// });
|
|
|
|
// for (FilterBtnModel value in customerProvider.filterHydList) {
|
|
|
|
// value.select = false;
|
|
|
|
// }
|
|
|
|
// for (FilterBtnModel value in customerProvider.filterHydList) {
|
|
|
|
// if (item.id == value.id) {
|
|
|
|
// state(() {
|
|
|
|
// value.select = true;
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
})),
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
customerProvider.getCheckhydSelAll();
|
|
|
|
// state(() {
|
|
|
|
// item.select = !item.select;
|
|
|
|
// });
|
|
|
|
// for (FilterBtnModel value in customerProvider.filterHydList) {
|
|
|
|
// value.select = false;
|
|
|
|
// }
|
|
|
|
// for (FilterBtnModel value in customerProvider.filterHydList) {
|
|
|
|
// if (item.id == value.id) {
|
|
|
|
// state(() {
|
|
|
|
// value.select = true;
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}))),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
...
|
...
|
@@ -1091,7 +1098,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
_textWidget('自定义标签', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
_textWidget('自定义标签', MyColours.color_515151, FontWeight.bold, 28),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
state(() {
|
|
...
|
...
|
@@ -1122,17 +1129,99 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
24))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(30),
|
|
|
|
Wrap(
|
|
|
|
spacing: ScreenUtil().setWidth(20),
|
|
|
|
runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
children: _buildFilterItem(customerProvider.filterLabelList, true,
|
|
|
|
(FilterBtnModel item) {
|
|
|
|
state(() {
|
|
|
|
item.select = !item.select;
|
|
|
|
});
|
|
|
|
customerProvider.getChecklabelSelAll();
|
|
|
|
})),
|
|
|
|
VEmptyView(20),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(10)),
|
|
|
|
child: Wrap(
|
|
|
|
spacing: ScreenUtil().setWidth(20),
|
|
|
|
runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
children:
|
|
|
|
_buildFilterItem(customerProvider.filterLabelList, false,
|
|
|
|
(FilterBtnModel item) {
|
|
|
|
state(() {
|
|
|
|
item.select = !item.select;
|
|
|
|
});
|
|
|
|
customerProvider.getChecklabelSelAll();
|
|
|
|
}))),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
//消费UI
|
|
|
|
Widget _consume(state) {
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
_textWidget('人均消费金额', MyColours.color_515151, FontWeight.bold, 28),
|
|
|
|
// GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
// customerProvider.controllersmoney.text = '';
|
|
|
|
// customerProvider.controlleremoney.text = '';
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// color: Colors.white,
|
|
|
|
// height: ScreenUtil().setWidth(40),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// padding: EdgeInsets.only(left: ScreenUtil().setWidth(130)),
|
|
|
|
// child: _textWidget(
|
|
|
|
// '清空', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
// ))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(10)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: _textFeildWidget(customerProvider.controllersmoney,
|
|
|
|
customerProvider.smoneyFocus, state, (value) {
|
|
|
|
//输入框
|
|
|
|
}, unit: '元')),
|
|
|
|
HEmptyView(10),
|
|
|
|
_textWidget('至', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
HEmptyView(10),
|
|
|
|
Expanded(
|
|
|
|
child: _textFeildWidget(customerProvider.controlleremoney,
|
|
|
|
customerProvider.emoneyFocus, state, (value) {},
|
|
|
|
unit: '元')),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(40),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
_textWidget('人均消费能力', MyColours.color_515151, FontWeight.bold, 28),
|
|
|
|
// GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
// customerProvider.controllersmoney.text = '';
|
|
|
|
// customerProvider.controlleremoney.text = '';
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// color: Colors.white,
|
|
|
|
// height: ScreenUtil().setWidth(40),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// padding: EdgeInsets.only(left: ScreenUtil().setWidth(130)),
|
|
|
|
// child: _textWidget(
|
|
|
|
// '清空', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
// ))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
HEmptyView(20),
|
|
|
|
_textWidget('最高的', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
HEmptyView(10),
|
|
|
|
Expanded(
|
|
|
|
child: _textFeildWidget(customerProvider.controllermaxmoney,
|
|
|
|
customerProvider.maxmoneyFocus, state, (value) {},
|
|
|
|
unit: '%')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
...
|
...
|
@@ -1198,7 +1287,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
_textWidget('高级筛选', MyColours.color_333333, FontWeight.bold, 28),
|
|
|
|
_textWidget('自定义时间', MyColours.color_515151, FontWeight.bold, 28),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
customerProvider.controllerstime.text = '';
|
|
...
|
...
|
@@ -1218,51 +1307,80 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(10)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: _textFeildWidget(customerProvider.controllerstime,
|
|
|
|
customerProvider.stimeFocus, state, (value) {
|
|
|
|
for (FilterBtnModel value in customerProvider.filterDayList) {
|
|
|
|
value.select = false;
|
|
|
|
}
|
|
|
|
customerProvider.controllernum.text = '';
|
|
|
|
state(() {});
|
|
|
|
// setState(() {});
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// customerProvider.searchData(value);
|
|
|
|
})),
|
|
|
|
HEmptyView(10),
|
|
|
|
_textWidget('至', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
HEmptyView(10),
|
|
|
|
Expanded(
|
|
|
|
child: _textFeildWidget(customerProvider.controlleretime,
|
|
|
|
customerProvider.etimeFocus, state, (value) {
|
|
|
|
for (FilterBtnModel value in customerProvider.filterDayList) {
|
|
|
|
value.select = false;
|
|
|
|
}
|
|
|
|
customerProvider.controllernum.text = '';
|
|
|
|
state(() {});
|
|
|
|
// setState(() {});
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// customerProvider.searchData(value);
|
|
|
|
})),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(30),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: _textFeildWidget(customerProvider.controllerstime,
|
|
|
|
customerProvider.stimeFocus, state)),
|
|
|
|
HEmptyView(10),
|
|
|
|
_textWidget('至', MyColours.color_199095, FontWeight.normal, 24),
|
|
|
|
HEmptyView(10),
|
|
|
|
Expanded(
|
|
|
|
child: _textFeildWidget(customerProvider.controlleretime,
|
|
|
|
customerProvider.etimeFocus, state)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(30),
|
|
|
|
Wrap(
|
|
|
|
spacing: ScreenUtil().setWidth(20),
|
|
|
|
runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
children: _buildFilterItem(customerProvider.filterDayList, true,
|
|
|
|
(FilterBtnModel item) {
|
|
|
|
customerProvider.controllerstime.text = '';
|
|
|
|
customerProvider.controlleretime.text = '';
|
|
|
|
for (FilterBtnModel value in customerProvider.filterDayList) {
|
|
|
|
value.select = false;
|
|
|
|
}
|
|
|
|
for (FilterBtnModel value in customerProvider.filterDayList) {
|
|
|
|
if (item.id == value.id) {
|
|
|
|
state(() {
|
|
|
|
value.select = true;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if (customerProvider.stimeFocus.hasFocus) {
|
|
|
|
// customerProvider.controllerstime.text = item.id;
|
|
|
|
// }
|
|
|
|
// if (customerProvider.etimeFocus.hasFocus) {
|
|
|
|
// customerProvider.controlleretime.text = item.id;
|
|
|
|
// }
|
|
|
|
// state(() {
|
|
|
|
// item.select = !item.select;
|
|
|
|
// });
|
|
|
|
})),
|
|
|
|
VEmptyView(30),
|
|
|
|
_textWidget('时间内预订次数', MyColours.color_333333, FontWeight.normal, 24),
|
|
|
|
VEmptyView(30),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(10)),
|
|
|
|
child: Row(children: [
|
|
|
|
_textWidget('或', MyColours.color_000000, FontWeight.normal, 24),
|
|
|
|
HEmptyView(20),
|
|
|
|
Wrap(
|
|
|
|
spacing: ScreenUtil().setWidth(20),
|
|
|
|
runSpacing: ScreenUtil().setWidth(20),
|
|
|
|
children:
|
|
|
|
_buildFilterItem(customerProvider.filterDayList, false,
|
|
|
|
(FilterBtnModel item) {
|
|
|
|
customerProvider.controllerstime.text = '';
|
|
|
|
customerProvider.controlleretime.text = '';
|
|
|
|
for (FilterBtnModel value
|
|
|
|
in customerProvider.filterDayList) {
|
|
|
|
value.select = false;
|
|
|
|
}
|
|
|
|
for (FilterBtnModel value
|
|
|
|
in customerProvider.filterDayList) {
|
|
|
|
if (item.id == value.id) {
|
|
|
|
state(() {
|
|
|
|
value.select = true;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if (customerProvider.stimeFocus.hasFocus) {
|
|
|
|
// customerProvider.controllerstime.text = item.id;
|
|
|
|
// }
|
|
|
|
// if (customerProvider.etimeFocus.hasFocus) {
|
|
|
|
// customerProvider.controlleretime.text = item.id;
|
|
|
|
// }
|
|
|
|
// state(() {
|
|
|
|
// item.select = !item.select;
|
|
|
|
// });
|
|
|
|
}))
|
|
|
|
])),
|
|
|
|
VEmptyView(40),
|
|
|
|
_textWidget('预订次数', MyColours.color_515151, FontWeight.bold, 28),
|
|
|
|
VEmptyView(20),
|
|
|
|
/**
|
|
|
|
Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
|
|
|
Material(
|
|
...
|
...
|
@@ -1300,6 +1418,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
*/
|
|
|
|
Row(children: [
|
|
|
|
Material(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(50),
|
|
|
|
// width: ScreenUtil().setWidth(100),
|
|
...
|
...
|
@@ -1307,14 +1426,14 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
horizontal: ScreenUtil().setWidth(20)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(30)),
|
|
|
|
color: Color.fromRGBO(239, 239, 239, 1)),
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
color: MyColours.color_DBDBDB),
|
|
|
|
child: DropdownButton(
|
|
|
|
underline: SizedBox(),
|
|
|
|
value: dropValue,
|
|
|
|
isDense: true,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
focusColor: MyColours.color_199095,
|
|
|
|
items: _dropdownMenuItem(),
|
|
...
|
...
|
@@ -1322,7 +1441,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
children: [
|
|
|
|
HEmptyView(10),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('c_arrow_down'),
|
|
|
|
Utils.getImgPath('c_arrow_d'),
|
|
|
|
width: ScreenUtil().setWidth(24),
|
|
|
|
// height: ScreenUtil().setWidth(10),
|
|
|
|
)
|
|
...
|
...
|
@@ -1357,7 +1476,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
// autofocus: true,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(26)),
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
decoration: InputDecoration(
|
|
...
|
...
|
@@ -1393,7 +1512,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
),
|
|
|
|
)),
|
|
|
|
HEmptyView(20),
|
|
|
|
_textWidget('次预订', MyColours.color_333333, FontWeight.normal, 24),
|
|
|
|
_textWidget('次预订', MyColours.color_515151, FontWeight.normal, 24),
|
|
|
|
]),
|
|
|
|
VEmptyView(50),
|
|
|
|
],
|
|
...
|
...
|
@@ -1437,7 +1556,8 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
|
|
|
|
/// 高级筛选输入框
|
|
|
|
Widget _textFeildWidget(TextEditingController controller, FocusNode focusNode,
|
|
|
|
StateSetter state) {
|
|
|
|
StateSetter state, ValueChanged<String> onChanged,
|
|
|
|
{String unit = '天'}) {
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(20),
|
|
...
|
...
|
@@ -1446,7 +1566,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
// alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Color.fromRGBO(239, 239, 239, 1),
|
|
|
|
borderRadius: BorderRadius.circular(ScreenUtil().setWidth(30))),
|
|
|
|
borderRadius: BorderRadius.circular(ScreenUtil().setWidth(10))),
|
|
|
|
child: Material(
|
|
|
|
color: Color.fromRGBO(239, 239, 239, 1),
|
|
|
|
child: Row(children: [
|
|
...
|
...
|
@@ -1458,7 +1578,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
// autofocus: true,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_333333,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(26)),
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
decoration: InputDecoration(
|
|
...
|
...
|
@@ -1475,17 +1595,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
|
|
|
textInputAction: TextInputAction.done,
|
|
|
|
|
|
|
|
onChanged: (value) {
|
|
|
|
for (FilterBtnModel value
|
|
|
|
in customerProvider.filterDayList) {
|
|
|
|
value.select = false;
|
|
|
|
}
|
|
|
|
customerProvider.controllernum.text = '';
|
|
|
|
state(() {});
|
|
|
|
// setState(() {});
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// customerProvider.searchData(value);
|
|
|
|
},
|
|
|
|
onChanged: onChanged,
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
...
|
...
|
@@ -1496,7 +1606,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_textWidget('天', MyColours.color_333333, FontWeight.normal, 24),
|
|
|
|
_textWidget(unit, MyColours.color_515151, FontWeight.normal, 24),
|
|
|
|
])));
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -1534,34 +1644,36 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
// child: Scrollbar(
|
|
|
|
// isAlwaysShown: true, //设置滚动条常亮
|
|
|
|
// controller: _scrollCrl, //必须设置一个controller
|
|
|
|
|
|
|
|
// ///添加进度条
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _scrollCrl,
|
|
|
|
// primary: true,
|
|
|
|
// reverse: true,
|
|
|
|
// physics: BouncingScrollPhysics(),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// bottom:
|
|
|
|
// MediaQuery.of(context).viewInsets.bottom),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
VEmptyView(20),
|
|
|
|
_managerWidget(state),
|
|
|
|
VEmptyView(30),
|
|
|
|
_activityWidget(state),
|
|
|
|
VEmptyView(30),
|
|
|
|
_labelWidget(state),
|
|
|
|
VEmptyView(30),
|
|
|
|
_advancedFilterWidget(state)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
// ),
|
|
|
|
child: Scrollbar(
|
|
|
|
isAlwaysShown: true, //设置滚动条常亮
|
|
|
|
controller: _scrollCrl, //必须设置一个controller
|
|
|
|
|
|
|
|
// ///添加进度条
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _scrollCrl,
|
|
|
|
// primary: true,
|
|
|
|
// reverse: true,
|
|
|
|
// physics: BouncingScrollPhysics(),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// bottom:
|
|
|
|
// MediaQuery.of(context).viewInsets.bottom),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
VEmptyView(20),
|
|
|
|
_managerWidget(state),
|
|
|
|
VEmptyView(40),
|
|
|
|
_activityWidget(state),
|
|
|
|
VEmptyView(40),
|
|
|
|
_labelWidget(state),
|
|
|
|
VEmptyView(40),
|
|
|
|
_consume(state),
|
|
|
|
VEmptyView(40),
|
|
|
|
_advancedFilterWidget(state)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
...
|
...
|
@@ -1604,7 +1716,7 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
alignment: Alignment.center,
|
|
|
|
child: _textWidget(
|
|
|
|
'重置',
|
|
|
|
MyColours.color_333333,
|
|
|
|
MyColours.color_515151,
|
|
|
|
FontWeight.normal,
|
|
|
|
30),
|
|
|
|
),
|
|
...
|
...
|
@@ -1680,11 +1792,11 @@ class _CustomerListPageState extends State<CustomerListPage> |
|
|
|
child: _textWidget(
|
|
|
|
item.title,
|
|
|
|
grayBack
|
|
|
|
? MyColours.color_333333
|
|
|
|
? MyColours.color_515151
|
|
|
|
: item.select
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: round
|
|
|
|
? MyColours.color_333333
|
|
|
|
? MyColours.color_515151
|
|
|
|
: MyColours.color_199095,
|
|
|
|
FontWeight.normal,
|
|
|
|
24))));
|
...
|
...
|
|