From 37107669e499c3af4f5092d3676da7b989669e3b Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Wed, 28 May 2025 22:40:20 +0800 Subject: [PATCH] chore: bring back animated theme (#7988) --- frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart | 2 +- .../packages/appflowy_ui/lib/src/theme/appflowy_theme.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart b/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart index e35bb29843..ca00323cdc 100644 --- a/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart +++ b/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart @@ -251,7 +251,7 @@ class _ApplicationWidgetState extends State { .orDefault(defaultFontFamily) .fontFamilyName; - return AppFlowyTheme( + return AnimatedAppFlowyTheme( data: brightness == Brightness.light ? themeBuilder.light(fontFamily: fontFamily) : themeBuilder.dark(fontFamily: fontFamily), diff --git a/frontend/appflowy_flutter/packages/appflowy_ui/lib/src/theme/appflowy_theme.dart b/frontend/appflowy_flutter/packages/appflowy_ui/lib/src/theme/appflowy_theme.dart index b8dc5a1149..26e45ca8f1 100644 --- a/frontend/appflowy_flutter/packages/appflowy_ui/lib/src/theme/appflowy_theme.dart +++ b/frontend/appflowy_flutter/packages/appflowy_ui/lib/src/theme/appflowy_theme.dart @@ -132,7 +132,7 @@ class _AnimatedThemeState @override Widget build(BuildContext context) { return AppFlowyTheme( - data: widget.data, + data: data!.evaluate(animation), child: widget.child, ); }