Merge pull request #519 from cypherstack/ui-fixes

fix biometrics button + center PIN page
This commit is contained in:
Diego Salazar 2023-05-04 16:56:03 -06:00 committed by GitHub
commit 63fa856b1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,6 @@ class LockscreenView extends ConsumerStatefulWidget {
final VoidCallback? onSuccess;
final String customKeyLabel;
@override
ConsumerState<LockscreenView> createState() => _LockscreenViewState();
}
@ -205,7 +204,9 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
late Biometrics biometrics;
Widget get _body => Background(
child: SafeArea(
child: Scaffold(
extendBodyBehindAppBar: true,
backgroundColor:
Theme.of(context).extension<StackColors>()!.background,
appBar: AppBar(
@ -223,18 +224,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 +249,13 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
],
),
),
const SizedBox(
height: 55,
],
),
],
),
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Shake(
animationDuration: const Duration(milliseconds: 700),
animationRange: 12,