|
|
@ -132,25 +132,30 @@ class _HomePageState extends State<HomePage> { |
|
|
|
final List<Account> accounts, |
|
|
|
final List<Account> accounts, |
|
|
|
final Account account, |
|
|
|
final Account account, |
|
|
|
) async { |
|
|
|
) async { |
|
|
|
|
|
|
|
final page = Scaffold( |
|
|
|
|
|
|
|
resizeToAvoidBottomInset: false, |
|
|
|
|
|
|
|
appBar: AppBar( |
|
|
|
|
|
|
|
title: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Text(app.name(context)), |
|
|
|
|
|
|
|
if (accounts.length > 1) ...[ |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
account.client.humanReadableID, |
|
|
|
|
|
|
|
style: Theme.of(context).textTheme.bodySmall, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
body: app.page, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
await Navigator.of(context).push( |
|
|
|
await Navigator.of(context).push( |
|
|
|
MaterialPageRoute( |
|
|
|
MaterialPageRoute( |
|
|
|
builder: (final context) => Scaffold( |
|
|
|
builder: (final context) => Provider<NotificationsBlocInterface>( |
|
|
|
resizeToAvoidBottomInset: false, |
|
|
|
create: (final context) => app.getBloc(account), |
|
|
|
appBar: AppBar( |
|
|
|
child: page, |
|
|
|
title: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Text(app.name(context)), |
|
|
|
|
|
|
|
if (accounts.length > 1) ...[ |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
account.client.humanReadableID, |
|
|
|
|
|
|
|
style: Theme.of(context).textTheme.bodySmall, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
body: app.page, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|