Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: rebuild application when setting the theme or font (#3139)
Nathan.fooo125bcbc9dbc5
diff --git a/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart b/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dartindex 7b926b2b98..4c13759a18 100644--- a/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart+++ b/frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart@@ -22,7 +22,11 @@ class InitAppWidgetTask extends LaunchTask {final widget = context.getIt<EntryPoint>().create(context.config);final appearanceSetting =await UserSettingsBackendService().getAppearanceSetting();++ // If the passed-in context is not the same as the context of the+ // application widget, the application widget will be rebuilt.final app = ApplicationWidget(+ key: ValueKey(context),appearanceSetting: appearanceSetting,child: widget,);@@ -89,7 +93,6 @@ class ApplicationWidget extends StatelessWidget {],child: BlocBuilder<AppearanceSettingsCubit, AppearanceSettingsState>(builder: (context, state) => MaterialApp(- key: UniqueKey(),builder: overlayManagerBuilder(),debugShowCheckedModeBanner: false,theme: state.lightTheme,