diff --git a/lib/pages/pinpad_views/lock_screen_view.dart b/lib/pages/pinpad_views/lock_screen_view.dart index 316ef9b5d..a11dd4090 100644 --- a/lib/pages/pinpad_views/lock_screen_view.dart +++ b/lib/pages/pinpad_views/lock_screen_view.dart @@ -55,7 +55,6 @@ class LockscreenView extends ConsumerStatefulWidget { final VoidCallback? onSuccess; final String customKeyLabel; - @override ConsumerState createState() => _LockscreenViewState(); } @@ -223,31 +222,39 @@ class _LockscreenViewState extends ConsumerState { }, ) : Container(), + actions: [ + // check prefs and hide if user has biometrics toggle off? + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding( + padding: const EdgeInsets.only( + right: 16.0, + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + if (ref + .read(prefsChangeNotifierProvider) + .useBiometrics == + true) + CustomTextButton( + text: "Use biometrics", + onTap: () async { + await _checkUseBiometrics(); + }, + ), + ], + ), + ), + ], + ), + ], ), body: SafeArea( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - // check prefs and hide if user has biometrics toggle off? - Padding( - padding: const EdgeInsets.only(right: 40.0), - child: Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - if (ref.read(prefsChangeNotifierProvider).useBiometrics == - true) - CustomTextButton( - text: "Use biometrics", - onTap: () async { - await _checkUseBiometrics(); - }, - ), - ], - ), - ), - const SizedBox( - height: 55, - ), Shake( animationDuration: const Duration(milliseconds: 700), animationRange: 12,