mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
Merge pull request #519 from cypherstack/ui-fixes
fix biometrics button + center PIN page
This commit is contained in:
commit
63fa856b1c
1 changed files with 50 additions and 42 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue