remove biometric button, move back button, add submit button

This commit is contained in:
ryleedavis 2023-05-01 16:30:43 -06:00
parent e05caa589f
commit 6eea7cd2cf
2 changed files with 21 additions and 20 deletions

View file

@ -1,5 +1,4 @@
import 'dart:async';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
@ -22,7 +21,6 @@ import 'package:stackwallet/utilities/theme/stack_colors.dart';
import 'package:stackwallet/widgets/background.dart';
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
import 'package:stackwallet/widgets/custom_pin_put/custom_pin_put.dart';
import 'package:stackwallet/widgets/custom_pin_put/pin_keyboard.dart';
import 'package:stackwallet/widgets/shake/shake.dart';
import 'package:tuple/tuple.dart';
@ -90,7 +88,7 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
final manager =
ref.read(walletsChangeNotifierProvider).getManager(walletId);
if (manager.coin == Coin.monero || manager.coin == Coin.wownero) {
if (manager.coin == Coin.monero) {
await showLoading(
opaqueBG: true,
whileFuture: manager.initializeExisting(),
@ -244,12 +242,12 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
height: 52,
),
CustomPinPut(
customKey: CustomKey(
onPressed: _checkUseBiometrics,
iconAssetName: Platform.isIOS
? Assets.svg.faceId
: Assets.svg.fingerprint,
),
// customKey: CustomKey(
// onPressed: _checkUseBiometrics,
// iconAssetName: Platform.isIOS
// ? Assets.svg.faceId
// : Assets.svg.fingerprint,
// ),
fieldsCount: Constants.pinLength,
eachFieldHeight: 12,
eachFieldWidth: 12,

View file

@ -355,12 +355,15 @@ class PinKeyboard extends StatelessWidget {
),
Row(
children: [
customKey == null
? const SizedBox(
height: 72,
width: 72,
)
: customKey!,
// customKey == null
// ? const SizedBox(
// height: 72,
// width: 72,
// )
// : customKey!,
BackspaceKey(
onPressed: _backHandler,
),
const SizedBox(
width: 24,
),
@ -371,12 +374,12 @@ class PinKeyboard extends StatelessWidget {
const SizedBox(
width: 24,
),
BackspaceKey(
onPressed: _backHandler,
),
// SubmitKey(
// onPressed: _submitHandler,
// BackspaceKey(
// onPressed: _backHandler,
// ),
SubmitKey(
onPressed: _submitHandler,
),
],
)
],