|
|
|
@ -184,10 +184,12 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
OptionBuilder<NavigationMode>( |
|
|
|
|
option: _globalOptions.navigationMode, |
|
|
|
|
builder: (final context, final navigationMode) { |
|
|
|
|
if (accountsSnapshot.hasData) { |
|
|
|
|
final accounts = accountsSnapshot.data!; |
|
|
|
|
final account = accounts.find(_account.id); |
|
|
|
|
if (account != null) { |
|
|
|
|
final accounts = accountsSnapshot.data; |
|
|
|
|
final account = accounts?.find(_account.id); |
|
|
|
|
if (accounts == null || account == null) { |
|
|
|
|
return const Scaffold(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
final isQuickBar = navigationMode == NavigationMode.quickBar; |
|
|
|
|
final drawer = Builder( |
|
|
|
|
builder: (final context) => Drawer( |
|
|
|
@ -281,8 +283,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
child: DropdownButton<String>( |
|
|
|
|
isExpanded: true, |
|
|
|
|
dropdownColor: Theme.of(context).colorScheme.primary, |
|
|
|
|
iconEnabledColor: |
|
|
|
|
Theme.of(context).colorScheme.onBackground, |
|
|
|
|
iconEnabledColor: Theme.of(context).colorScheme.onBackground, |
|
|
|
|
value: _account.id, |
|
|
|
|
items: accounts |
|
|
|
|
.map<DropdownMenuItem<String>>( |
|
|
|
@ -566,9 +567,6 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return const Scaffold(); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|