mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
debug: rerender username properly
This commit is contained in:
parent
29ce171783
commit
a8b560ed93
@ -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);
|
||||
},
|
||||
);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user