Add missing OATH actions to locked screen.

This commit is contained in:
Dain Nilsson 2022-05-23 11:02:37 +02:00
parent 7dbdc03f39
commit a1442e6851
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -51,6 +51,37 @@ class _LockedView extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) => AppPage(
title: const Text('Authenticator'),
actions: [
OutlinedButton.icon(
label: const Text('Options'),
icon: const Icon(Icons.tune),
onPressed: () {
showBottomMenu(context, [
MenuAction(
text: 'Manage password',
icon: const Icon(Icons.password),
action: (context) {
showDialog(
context: context,
builder: (context) =>
ManagePasswordDialog(devicePath, oathState),
);
},
),
MenuAction(
text: 'Reset OATH',
icon: const Icon(Icons.delete),
action: (context) {
showDialog(
context: context,
builder: (context) => ResetDialog(devicePath),
);
},
),
]);
},
),
],
child: Column(
children: [
const ListTile(title: Text('Unlock')),