mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Integrated wallet names generation
This commit is contained in:
parent
62cf0d0b4c
commit
0c197660a8
9 changed files with 89 additions and 34 deletions
|
@ -1,3 +1,5 @@
|
|||
import 'package:cake_wallet/utils/show_bar.dart';
|
||||
import 'package:flushbar/flushbar.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
@ -33,6 +35,7 @@ class PinCodeState<T extends PinCodeWidget> extends State<T> {
|
|||
String pin;
|
||||
String title;
|
||||
double _aspectRatio;
|
||||
Flushbar<void> _progressBar;
|
||||
|
||||
int currentPinLength() => pin.length;
|
||||
|
||||
|
@ -80,6 +83,17 @@ class PinCodeState<T extends PinCodeWidget> extends State<T> {
|
|||
setState(() {});
|
||||
}
|
||||
|
||||
void changeProcessText(String text) {
|
||||
hideProgressText();
|
||||
_progressBar = createBar<void>(text, duration: null)
|
||||
..show(_key.currentContext);
|
||||
}
|
||||
|
||||
void hideProgressText() {
|
||||
_progressBar?.dismiss();
|
||||
_progressBar = null;
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
key: _key, body: body(context), resizeToAvoidBottomPadding: false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue