mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
move biometrics to appbar
This commit is contained in:
parent
8fd0caac44
commit
8d7db30328
1 changed files with 28 additions and 21 deletions
|
@ -55,7 +55,6 @@ class LockscreenView extends ConsumerStatefulWidget {
|
|||
final VoidCallback? onSuccess;
|
||||
final String customKeyLabel;
|
||||
|
||||
|
||||
@override
|
||||
ConsumerState<LockscreenView> createState() => _LockscreenViewState();
|
||||
}
|
||||
|
@ -223,18 +222,21 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
|||
},
|
||||
)
|
||||
: Container(),
|
||||
),
|
||||
body: SafeArea(
|
||||
child: Column(
|
||||
actions: [
|
||||
// check prefs and hide if user has biometrics toggle off?
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
// check prefs and hide if user has biometrics toggle off?
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 40.0),
|
||||
padding: const EdgeInsets.only(
|
||||
right: 16.0,
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
if (ref.read(prefsChangeNotifierProvider).useBiometrics ==
|
||||
if (ref
|
||||
.read(prefsChangeNotifierProvider)
|
||||
.useBiometrics ==
|
||||
true)
|
||||
CustomTextButton(
|
||||
text: "Use biometrics",
|
||||
|
@ -245,9 +247,14 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
|||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 55,
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
body: SafeArea(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Shake(
|
||||
animationDuration: const Duration(milliseconds: 700),
|
||||
animationRange: 12,
|
||||
|
|
Loading…
Reference in a new issue