|
|
@ -321,8 +321,8 @@ class _HomePageState extends State<HomePage> { |
|
|
|
return Tooltip( |
|
|
|
return Tooltip( |
|
|
|
message: appImplementation.name(context), |
|
|
|
message: appImplementation.name(context), |
|
|
|
child: IconButton( |
|
|
|
child: IconButton( |
|
|
|
onPressed: () { |
|
|
|
onPressed: () async { |
|
|
|
_appsBloc.setActiveApp(appImplementation.id); |
|
|
|
await _appsBloc.setActiveApp(appImplementation.id); |
|
|
|
}, |
|
|
|
}, |
|
|
|
icon: AppImplementationIcon( |
|
|
|
icon: AppImplementationIcon( |
|
|
|
appImplementation: appImplementation, |
|
|
|
appImplementation: appImplementation, |
|
|
@ -352,10 +352,13 @@ class _HomePageState extends State<HomePage> { |
|
|
|
), |
|
|
|
), |
|
|
|
leading: appImplementation.buildIcon(context), |
|
|
|
leading: appImplementation.buildIcon(context), |
|
|
|
minLeadingWidth: 0, |
|
|
|
minLeadingWidth: 0, |
|
|
|
onTap: () { |
|
|
|
onTap: () async { |
|
|
|
_appsBloc.setActiveApp(appImplementation.id); |
|
|
|
await _appsBloc.setActiveApp(appImplementation.id); |
|
|
|
if (navigationMode == NavigationMode.drawer) { |
|
|
|
if (navigationMode == NavigationMode.drawer) { |
|
|
|
// Don't pop when the drawer is always shown |
|
|
|
// Don't pop when the drawer is always shown |
|
|
|
|
|
|
|
if (!mounted) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
Navigator.of(context).pop(); |
|
|
|
Navigator.of(context).pop(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|