feat:更新日程页面主题色

This commit is contained in:
2025-11-13 16:45:13 +08:00
parent 427e9f0a48
commit e384db7845
2 changed files with 10 additions and 3 deletions

View File

@@ -30,8 +30,8 @@ class CalendarPageState extends State<CalendarPage> {
}
@override
void initState() {
super.initState();
void didChangeDependencies() {
super.didChangeDependencies();
refreshAppointments();
}
@@ -45,7 +45,7 @@ class CalendarPageState extends State<CalendarPage> {
startTime: calendar.startTime!,
endTime: calendar.endTime!,
subject: calendar.title,
color: Colors.blue,
color: Theme.of(context).colorScheme.primary,
),
)
.toList();