更新日历样式
This commit is contained in:
@@ -886,8 +886,6 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
|
||||
final today = DateTime(now.year, now.month, now.day);
|
||||
DateTime targetDate = selectedDate;
|
||||
|
||||
|
||||
|
||||
if (type == 1) {
|
||||
final nextDate = selectedDate.add(const Duration(days: 1));
|
||||
if (!nextDate.isAfter(today)) {
|
||||
@@ -1085,6 +1083,7 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
|
||||
type: sleepReportController.model.type,
|
||||
timestamp: selectedDate.millisecondsSinceEpoch,
|
||||
context: context,
|
||||
mac: widget.data['mac'],
|
||||
onDateSelected: (newDate) {
|
||||
sleepReportController.selectedDate.value = newDate;
|
||||
calendarController.selectedDate.value = newDate;
|
||||
@@ -1121,9 +1120,9 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
|
||||
},
|
||||
);
|
||||
},
|
||||
child: SizedBox(
|
||||
width: 28.rpx,
|
||||
height: 28.rpx,
|
||||
child: Container(
|
||||
width: 36.rpx,
|
||||
height: 36.rpx,
|
||||
child: SvgPicture.asset(
|
||||
'assets/img/icon/calendar.svg',
|
||||
fit: BoxFit.cover,
|
||||
|
||||
Reference in New Issue
Block a user