|
...
|
...
|
@@ -257,7 +257,7 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
}
|
|
|
|
|
|
|
|
//获取订单统计数目
|
|
|
|
_reserveCountDay() {
|
|
|
|
_reserveCountDay() async {
|
|
|
|
NoteBookModel model = Provider.of<NoteBookModel>(context, listen: false);
|
|
|
|
Map<String, String> params = {
|
|
|
|
"sid": userModel.user.sellerid,
|
|
...
|
...
|
@@ -272,7 +272,7 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
if (tabIndex == 1) {
|
|
|
|
params["account"] = userModel.user.account;
|
|
|
|
}
|
|
|
|
model.getReserveCountDay(context, params);
|
|
|
|
await model.getReserveCountDay(context, params);
|
|
|
|
}
|
|
|
|
|
|
|
|
//构建List表头
|
|
...
|
...
|
@@ -380,134 +380,134 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
_reserveCountDay();
|
|
|
|
}
|
|
|
|
|
|
|
|
Widget _buildTabbar() {
|
|
|
|
Container container = Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(20), top: ScreenUtil().setWidth(20)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(20)),
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
if (tabIndex == 0) return;
|
|
|
|
setState(() {
|
|
|
|
tabIndex = 0;
|
|
|
|
_getReserveList();
|
|
|
|
_reserveCountDay();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"全部预订",
|
|
|
|
style: TextStyle(
|
|
|
|
color: tabIndex == 0
|
|
|
|
? MyColours.color_353535
|
|
|
|
: MyColours.color_999999,
|
|
|
|
fontSize: tabIndex == 0
|
|
|
|
? ScreenUtil().setSp(36)
|
|
|
|
: ScreenUtil().setSp(28),
|
|
|
|
fontWeight: tabIndex == 0
|
|
|
|
? FontWeight.bold
|
|
|
|
: FontWeight.normal),
|
|
|
|
),
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.bottomCenter,
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(6),
|
|
|
|
width: ScreenUtil().setWidth(60),
|
|
|
|
margin: EdgeInsets.only(top: ScreenUtil().setWidth(8)),
|
|
|
|
decoration: tabIndex == 0
|
|
|
|
? BoxDecoration(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(6)))
|
|
|
|
: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(6))),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(20)),
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
if (tabIndex == 1) return;
|
|
|
|
setState(() {
|
|
|
|
tabIndex = 1;
|
|
|
|
_getReserveList();
|
|
|
|
_reserveCountDay();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"我录入的",
|
|
|
|
style: TextStyle(
|
|
|
|
color: tabIndex == 1
|
|
|
|
? MyColours.color_353535
|
|
|
|
: MyColours.color_999999,
|
|
|
|
fontSize: tabIndex == 1
|
|
|
|
? ScreenUtil().setSp(36)
|
|
|
|
: ScreenUtil().setSp(28),
|
|
|
|
fontWeight: tabIndex == 1
|
|
|
|
? FontWeight.bold
|
|
|
|
: FontWeight.normal),
|
|
|
|
),
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.bottomCenter,
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(6),
|
|
|
|
width: ScreenUtil().setWidth(60),
|
|
|
|
margin: EdgeInsets.only(top: ScreenUtil().setWidth(8)),
|
|
|
|
decoration: tabIndex == 1
|
|
|
|
? BoxDecoration(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(6)))
|
|
|
|
: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(6))),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goStatisticsPage(context);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(40),
|
|
|
|
right: ScreenUtil().setWidth(40),
|
|
|
|
bottom: ScreenUtil().setWidth(30)),
|
|
|
|
child: Text(
|
|
|
|
"统计列表",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(36),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
return container;
|
|
|
|
}
|
|
|
|
// Widget _buildTabbar() {
|
|
|
|
// Container container = Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// width: double.infinity,
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(20), top: ScreenUtil().setWidth(20)),
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Container(
|
|
|
|
// padding:
|
|
|
|
// EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(20)),
|
|
|
|
// child: GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
// if (tabIndex == 0) return;
|
|
|
|
// setState(() {
|
|
|
|
// tabIndex = 0;
|
|
|
|
// _getReserveList();
|
|
|
|
// _reserveCountDay();
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// child: Column(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Text(
|
|
|
|
// "全部预订",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: tabIndex == 0
|
|
|
|
// ? MyColours.color_353535
|
|
|
|
// : MyColours.color_999999,
|
|
|
|
// fontSize: tabIndex == 0
|
|
|
|
// ? ScreenUtil().setSp(36)
|
|
|
|
// : ScreenUtil().setSp(28),
|
|
|
|
// fontWeight: tabIndex == 0
|
|
|
|
// ? FontWeight.bold
|
|
|
|
// : FontWeight.normal),
|
|
|
|
// ),
|
|
|
|
// Align(
|
|
|
|
// alignment: Alignment.bottomCenter,
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setWidth(6),
|
|
|
|
// width: ScreenUtil().setWidth(60),
|
|
|
|
// margin: EdgeInsets.only(top: ScreenUtil().setWidth(8)),
|
|
|
|
// decoration: tabIndex == 0
|
|
|
|
// ? BoxDecoration(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// ScreenUtil().setWidth(6)))
|
|
|
|
// : BoxDecoration(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// ScreenUtil().setWidth(6))),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// ),
|
|
|
|
// Container(
|
|
|
|
// padding:
|
|
|
|
// EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(20)),
|
|
|
|
// child: GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
// if (tabIndex == 1) return;
|
|
|
|
// setState(() {
|
|
|
|
// tabIndex = 1;
|
|
|
|
// _getReserveList();
|
|
|
|
// _reserveCountDay();
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// child: Column(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Text(
|
|
|
|
// "我录入的",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: tabIndex == 1
|
|
|
|
// ? MyColours.color_353535
|
|
|
|
// : MyColours.color_999999,
|
|
|
|
// fontSize: tabIndex == 1
|
|
|
|
// ? ScreenUtil().setSp(36)
|
|
|
|
// : ScreenUtil().setSp(28),
|
|
|
|
// fontWeight: tabIndex == 1
|
|
|
|
// ? FontWeight.bold
|
|
|
|
// : FontWeight.normal),
|
|
|
|
// ),
|
|
|
|
// Align(
|
|
|
|
// alignment: Alignment.bottomCenter,
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setWidth(6),
|
|
|
|
// width: ScreenUtil().setWidth(60),
|
|
|
|
// margin: EdgeInsets.only(top: ScreenUtil().setWidth(8)),
|
|
|
|
// decoration: tabIndex == 1
|
|
|
|
// ? BoxDecoration(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// ScreenUtil().setWidth(6)))
|
|
|
|
// : BoxDecoration(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// ScreenUtil().setWidth(6))),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// ),
|
|
|
|
// Spacer(),
|
|
|
|
// GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
// NavigatorUtil.goStatisticsPage(context);
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// color: Colors.white,
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil().setWidth(40),
|
|
|
|
// right: ScreenUtil().setWidth(40),
|
|
|
|
// bottom: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Text(
|
|
|
|
// "统计列表",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// fontSize: ScreenUtil().setSp(36),
|
|
|
|
// fontWeight: FontWeight.bold),
|
|
|
|
// ))),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// );
|
|
|
|
// return container;
|
|
|
|
// }
|
|
|
|
|
|
|
|
_simpleState() {
|
|
|
|
if (noteBookModel.notebooks.length > 0) {
|
|
...
|
...
|
@@ -573,10 +573,11 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
right: ScreenUtil().setWidth(24),
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: TableCalendar(
|
|
|
|
rowHeight: ScreenUtil().setWidth(38 * 2),
|
|
|
|
rowHeight: ScreenUtil().setWidth(74 * 2),
|
|
|
|
calendarController: _calendarController,
|
|
|
|
initialSelectedDay: dateTimeNow,
|
|
|
|
headerVisible: false,
|
|
...
|
...
|
@@ -600,6 +601,7 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
locale: "zh_CN",
|
|
|
|
initialCalendarFormat: CalendarFormat.week,
|
|
|
|
calendarStyle: CalendarStyle(
|
|
|
|
renderDaysOfWeek: false,
|
|
|
|
weekdayStyle: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
...
|
...
|
@@ -632,22 +634,46 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
),
|
|
|
|
builders: CalendarBuilders(
|
|
|
|
dayBuilder: (context, dateTime, events) {
|
|
|
|
return Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
return Column(children: [
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(16)),
|
|
|
|
child: Text(
|
|
|
|
DateTime.now().weekday ==
|
|
|
|
dateTime.weekday
|
|
|
|
? '今日'
|
|
|
|
: Utils.formatWeekDayNum(
|
|
|
|
dateTime.weekday),
|
|
|
|
style: TextStyle(
|
|
|
|
color: dateTimeNow.weekday ==
|
|
|
|
dateTime.weekday &&
|
|
|
|
!clearSel
|
|
|
|
? MyColours.color_438E93
|
|
|
|
: MyColours.color_BFC4D4,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
margin: EdgeInsets.all(
|
|
|
|
ScreenUtil().setWidth(8)),
|
|
|
|
child: Text(
|
|
|
|
dateTime.day.toString(),
|
|
|
|
style: TextStyle().copyWith(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(28 * 2),
|
|
|
|
height: ScreenUtil().setWidth(28 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
margin: EdgeInsets.all(
|
|
|
|
ScreenUtil().setWidth(8)),
|
|
|
|
child: Text(
|
|
|
|
dateTime.day.toString(),
|
|
|
|
style: TextStyle().copyWith(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
]);
|
|
|
|
},
|
|
|
|
unavailableDayBuilder:
|
|
|
|
(context, dateTime, events) {
|
|
...
|
...
|
@@ -694,50 +720,106 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
|
|
|
|
selectedDayBuilder: (context, date, _) {
|
|
|
|
return clearSel
|
|
|
|
? Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
? Column(children: [
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical:
|
|
|
|
ScreenUtil().setWidth(16)),
|
|
|
|
child: Text(
|
|
|
|
DateTime.now().weekday ==
|
|
|
|
date.weekday
|
|
|
|
? '今日'
|
|
|
|
: Utils.formatWeekDayNum(
|
|
|
|
date.weekday),
|
|
|
|
style: TextStyle(
|
|
|
|
color: dateTimeNow.weekday ==
|
|
|
|
date.weekday &&
|
|
|
|
!clearSel
|
|
|
|
? MyColours.color_438E93
|
|
|
|
: MyColours.color_BFC4D4,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
margin: EdgeInsets.all(
|
|
|
|
ScreenUtil().setWidth(8)),
|
|
|
|
child: Text(
|
|
|
|
date.day.toString(),
|
|
|
|
style: TextStyle().copyWith(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
Container(
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(28 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(28 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
margin: EdgeInsets.all(
|
|
|
|
ScreenUtil().setWidth(8)),
|
|
|
|
child: Text(
|
|
|
|
date.day.toString(),
|
|
|
|
style: TextStyle().copyWith(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
])
|
|
|
|
: Column(children: [
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical:
|
|
|
|
ScreenUtil().setWidth(16)),
|
|
|
|
child: Text(
|
|
|
|
DateTime.now().weekday ==
|
|
|
|
date.weekday
|
|
|
|
? '今日'
|
|
|
|
: Utils.formatWeekDayNum(
|
|
|
|
date.weekday),
|
|
|
|
style: TextStyle(
|
|
|
|
color: dateTimeNow.weekday ==
|
|
|
|
date.weekday &&
|
|
|
|
!clearSel
|
|
|
|
? MyColours.color_438E93
|
|
|
|
: MyColours.color_BFC4D4,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
gradient: LinearGradient(
|
|
|
|
colors: [
|
|
|
|
MyColours.color_438E93,
|
|
|
|
MyColours.color_438E93
|
|
|
|
],
|
|
|
|
begin: Alignment.topCenter,
|
|
|
|
end: Alignment.bottomCenter),
|
|
|
|
Container(
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(28 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(28 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
gradient: LinearGradient(
|
|
|
|
colors: [
|
|
|
|
MyColours.color_438E93,
|
|
|
|
MyColours.color_438E93
|
|
|
|
],
|
|
|
|
begin: Alignment.topCenter,
|
|
|
|
end: Alignment.bottomCenter),
|
|
|
|
// border: Border.all(color: MyColours.color_FFB116)
|
|
|
|
),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
margin: EdgeInsets.all(
|
|
|
|
ScreenUtil().setWidth(8)),
|
|
|
|
padding: EdgeInsets.all(
|
|
|
|
ScreenUtil().setWidth(4),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
date.day.toString(),
|
|
|
|
style: TextStyle().copyWith(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
margin: EdgeInsets.all(
|
|
|
|
ScreenUtil().setWidth(8)),
|
|
|
|
padding: EdgeInsets.all(
|
|
|
|
ScreenUtil().setWidth(4),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
date.day.toString(),
|
|
|
|
style: TextStyle().copyWith(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
]);
|
|
|
|
},
|
|
|
|
// todayDayBuilder: (context, date, _) {
|
|
|
|
// return Container(
|
|
...
|
...
|
@@ -791,6 +873,7 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
ScreenUtil().setWidth(10))),
|
|
|
|
child: Text(
|
|
|
|
dateText,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_ffffff,
|
|
...
|
...
|
@@ -837,7 +920,8 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
model.totalmorning,
|
|
|
|
builder: (context, total, child) {
|
|
|
|
return CommonButtonFlat(
|
|
|
|
content: "早餐" + total,
|
|
|
|
content: "早餐" +
|
|
|
|
'${total == '(0)' ? '' : total}',
|
|
|
|
state: currTimeIndex == 1 ? 1 : 0,
|
|
|
|
fontSize: 28,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
...
|
...
|
@@ -873,7 +957,8 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
model.totalnoon,
|
|
|
|
builder: (context, total, child) {
|
|
|
|
return CommonButtonFlat(
|
|
|
|
content: "午餐" + total,
|
|
|
|
content: "午餐" +
|
|
|
|
'${total == '(0)' ? '' : total}',
|
|
|
|
state: currTimeIndex == 2 ? 1 : 0,
|
|
|
|
fontSize: 28,
|
|
|
|
width: ScreenUtil().setWidth(240 * 2) /
|
|
...
|
...
|
@@ -911,7 +996,8 @@ class NoteBookPageState extends State<NoteBookPage> { |
|
|
|
model.totalnight,
|
|
|
|
builder: (context, total, child) {
|
|
|
|
return CommonButtonFlat(
|
|
|
|
content: "晚餐" + total,
|
|
|
|
content: "晚餐" +
|
|
|
|
'${total == '(0)' ? '' : total}',
|
|
|
|
left: morning == "00:00-00:00" &&
|
|
|
|
noon == "00:00-00:00"
|
|
|
|
? true
|
...
|
...
|
|