UseBiometric button + only show if biometrics toggle is on

This commit is contained in:
ryleedavis 2023-05-01 16:34:16 -06:00
parent 6eea7cd2cf
commit 096aab834b

View file

@ -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,