factor:布局颜色重构
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user