mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
UseBiometric button + only show if biometrics toggle is on
This commit is contained in:
parent
6eea7cd2cf
commit
096aab834b
1 changed files with 20 additions and 0 deletions
|
@ -224,6 +224,26 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
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(
|
Shake(
|
||||||
animationDuration: const Duration(milliseconds: 700),
|
animationDuration: const Duration(milliseconds: 700),
|
||||||
animationRange: 12,
|
animationRange: 12,
|
||||||
|
|
Loading…
Reference in a new issue