mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 19:05:51 +00:00
remove biometric button, move back button, add submit button
This commit is contained in:
parent
e05caa589f
commit
6eea7cd2cf
2 changed files with 21 additions and 20 deletions
|
@ -1,5 +1,4 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.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/background.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.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/custom_pin_put.dart';
|
||||||
import 'package:stackwallet/widgets/custom_pin_put/pin_keyboard.dart';
|
|
||||||
import 'package:stackwallet/widgets/shake/shake.dart';
|
import 'package:stackwallet/widgets/shake/shake.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
|
@ -90,7 +88,7 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
||||||
|
|
||||||
final manager =
|
final manager =
|
||||||
ref.read(walletsChangeNotifierProvider).getManager(walletId);
|
ref.read(walletsChangeNotifierProvider).getManager(walletId);
|
||||||
if (manager.coin == Coin.monero || manager.coin == Coin.wownero) {
|
if (manager.coin == Coin.monero) {
|
||||||
await showLoading(
|
await showLoading(
|
||||||
opaqueBG: true,
|
opaqueBG: true,
|
||||||
whileFuture: manager.initializeExisting(),
|
whileFuture: manager.initializeExisting(),
|
||||||
|
@ -244,12 +242,12 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
||||||
height: 52,
|
height: 52,
|
||||||
),
|
),
|
||||||
CustomPinPut(
|
CustomPinPut(
|
||||||
customKey: CustomKey(
|
// customKey: CustomKey(
|
||||||
onPressed: _checkUseBiometrics,
|
// onPressed: _checkUseBiometrics,
|
||||||
iconAssetName: Platform.isIOS
|
// iconAssetName: Platform.isIOS
|
||||||
? Assets.svg.faceId
|
// ? Assets.svg.faceId
|
||||||
: Assets.svg.fingerprint,
|
// : Assets.svg.fingerprint,
|
||||||
),
|
// ),
|
||||||
fieldsCount: Constants.pinLength,
|
fieldsCount: Constants.pinLength,
|
||||||
eachFieldHeight: 12,
|
eachFieldHeight: 12,
|
||||||
eachFieldWidth: 12,
|
eachFieldWidth: 12,
|
||||||
|
|
|
@ -355,12 +355,15 @@ class PinKeyboard extends StatelessWidget {
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
customKey == null
|
// customKey == null
|
||||||
? const SizedBox(
|
// ? const SizedBox(
|
||||||
height: 72,
|
// height: 72,
|
||||||
width: 72,
|
// width: 72,
|
||||||
)
|
// )
|
||||||
: customKey!,
|
// : customKey!,
|
||||||
|
BackspaceKey(
|
||||||
|
onPressed: _backHandler,
|
||||||
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 24,
|
width: 24,
|
||||||
),
|
),
|
||||||
|
@ -371,12 +374,12 @@ class PinKeyboard extends StatelessWidget {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 24,
|
width: 24,
|
||||||
),
|
),
|
||||||
BackspaceKey(
|
// BackspaceKey(
|
||||||
onPressed: _backHandler,
|
// onPressed: _backHandler,
|
||||||
),
|
|
||||||
// SubmitKey(
|
|
||||||
// onPressed: _submitHandler,
|
|
||||||
// ),
|
// ),
|
||||||
|
SubmitKey(
|
||||||
|
onPressed: _submitHandler,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue