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.

debug: rerender username properly

Ian Sua8b560ed9358
diff --git a/frontend/app_flowy/lib/workspace/presentation/home/menu/menu_user.dart b/frontend/app_flowy/lib/workspace/presentation/home/menu/menu_user.dart
index e819a0ed40..4bc2ce29c2 100644
--- a/frontend/app_flowy/lib/workspace/presentation/home/menu/menu_user.dart
+++ b/frontend/app_flowy/lib/workspace/presentation/home/menu/menu_user.dart
@@ -67,6 +67,7 @@ class MenuUser extends StatelessWidget {
Widget _renderSettingsButton(BuildContext context) {
final theme = context.watch<AppTheme>();
+ final userProfile = context.read<MenuUserBloc>().state.userProfile;
return Tooltip(
message: LocaleKeys.settings_menu_open.tr(),
child: IconButton(
@@ -74,7 +75,7 @@ class MenuUser extends StatelessWidget {
showDialog(
context: context,
builder: (context) {
- return SettingsDialog(user);
+ return SettingsDialog(userProfile);
},
);
},