factor:布局颜色重构

This commit is contained in:
2025-11-20 11:04:29 +08:00
parent a582ebb3e4
commit 6e97d7f33f
16 changed files with 311 additions and 284 deletions

View File

@@ -61,6 +61,10 @@ Widget buildCalendar({
return SfCalendar(
view: CalendarView.week,
controller: controller,
backgroundColor: Theme.of(context).colorScheme.surfaceContainer,
headerStyle: CalendarHeaderStyle(
backgroundColor: Theme.of(context).colorScheme.surfaceContainer,
),
dataSource: dataSource,
firstDayOfWeek: 1,
showDatePickerButton: true,
@@ -75,8 +79,8 @@ Widget buildCalendar({
scheduleViewSettings: ScheduleViewSettings(
monthHeaderSettings: MonthHeaderSettings(
backgroundColor: Theme.of(context).colorScheme.primary,
height: 85
)
height: 85,
),
),
// 时间区域设置
timeSlotViewSettings: TimeSlotViewSettings(