fix: new doc button's langauge display issue

This commit is contained in:
appflowy 2022-02-05 11:05:06 +08:00
parent cb57d20bfb
commit 18407a0e47
2 changed files with 6 additions and 2 deletions

View File

@ -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(

View File

@ -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(),
),