mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 10:33:15 +03:00
review updates
This commit is contained in:
parent
5ce2f53fe6
commit
4d30727c79
@ -54,7 +54,7 @@ Future<Widget> initialize() async {
|
||||
child: YubicoAuthenticatorApp(page: Consumer(
|
||||
builder: (context, ref, child) {
|
||||
// activates the sub page provider
|
||||
ref.watch(androidSubPageProvider);
|
||||
ref.read(androidSubPageProvider);
|
||||
return const MainPage();
|
||||
},
|
||||
)),
|
||||
|
@ -26,8 +26,7 @@ Future<void> showBottomMenu(
|
||||
constraints: MediaQuery.of(context).size.width > 540
|
||||
? const BoxConstraints(maxWidth: 380)
|
||||
: null,
|
||||
builder: (context) => _BottomMenu(actions),
|
||||
);
|
||||
builder: (context) => SafeArea(child: _BottomMenu(actions)));
|
||||
}
|
||||
|
||||
class _BottomMenu extends ConsumerWidget {
|
||||
@ -41,9 +40,9 @@ class _BottomMenu extends ConsumerWidget {
|
||||
Navigator.of(context).pop();
|
||||
});
|
||||
|
||||
return SafeArea(
|
||||
child: Column(
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: actions
|
||||
.map((a) => ListTile(
|
||||
leading: a.icon,
|
||||
@ -57,7 +56,6 @@ class _BottomMenu extends ConsumerWidget {
|
||||
},
|
||||
))
|
||||
.toList(),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user