Skip to content

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.

fix: new doc button's langauge display issue

appflowy18407a0e470a
diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/header/header.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/header/header.dart
index f3d782f853..795de8d5a7 100644
--- a/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/header/header.dart
+++ b/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/header/header.dart
@@ -26,7 +26,7 @@ class MenuAppHeader extends StatelessWidget {
@override
Widget build(BuildContext context) {
- final theme = context.watch<AppTheme>();
+ final theme = context.read<AppTheme>();
return SizedBox(
height: MenuAppSizes.headerHeight,
child: Row(
diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/menu_app.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/menu_app.dart
index 7dab60cf88..f5de26dc13 100644
--- a/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/menu_app.dart
+++ b/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/menu_app.dart
@@ -1,3 +1,4 @@
+import 'package:app_flowy/workspace/application/appearance.dart';
import 'package:app_flowy/workspace/presentation/widgets/menu/menu.dart';
import 'package:app_flowy/workspace/presentation/widgets/menu/widget/app/header/header.dart';
import 'package:expandable/expandable.dart';
@@ -79,7 +80,10 @@ class _MenuAppState extends State<MenuApp> {
iconPadding: EdgeInsets.zero,
hasIcon: false,
),
- header: MenuAppHeader(widget.app),
+ header: ChangeNotifierProvider.value(
+ value: Provider.of<AppearanceSettingModel>(context, listen: true),
+ child: MenuAppHeader(widget.app),
+ ),
expanded: _renderViewSection(notifier),
collapsed: const SizedBox(),
),