review updates

This commit is contained in:
Adam Velebil 2022-04-05 16:11:01 +02:00
parent 5ce2f53fe6
commit 4d30727c79
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084
2 changed files with 22 additions and 24 deletions

View File

@ -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();
},
)),

View File

@ -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(),
),
);
}
}