chore: use the animated appflowy theme widget

This commit is contained in:
Richard Shiue 2025-04-17 18:20:11 +08:00
parent 8b303b7e9d
commit 44c341de61
2 changed files with 2 additions and 2 deletions

View file

@ -238,7 +238,7 @@ class _ApplicationWidgetState extends State<ApplicationWidget> {
final themeBuilder = AppFlowyDefaultTheme();
final brightness = Theme.of(context).brightness;
return AppFlowyTheme(
return AnimatedAppFlowyTheme(
data: brightness == Brightness.light
? themeBuilder.light()
: themeBuilder.dark(),

View file

@ -30,7 +30,7 @@ class MyApp extends StatelessWidget {
final themeData =
themeMode == ThemeMode.light ? ThemeData.light() : ThemeData.dark();
return AppFlowyTheme(
return AnimatedAppFlowyTheme(
data: themeMode == ThemeMode.light
? themeBuilder.light()
: themeBuilder.dark(),