update
This commit is contained in:
@@ -18,6 +18,11 @@ class _AuthImportPageState extends State<AuthImportPage> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
|
||||
setState(() {
|
||||
_editingController.text =
|
||||
'demise sell awesome tragic faith village party elbow lady leopard wrestle civil';
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -49,12 +54,14 @@ class _AuthImportPageState extends State<AuthImportPage> {
|
||||
),
|
||||
const Text('支持导入所有遵循BIP标准生成的助记词'),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
onPressed: () async {
|
||||
String? address =
|
||||
HDWallet.mnemonicToAddress(_editingController.text);
|
||||
if (address != null) {
|
||||
AuthService.to.login(address);
|
||||
Get.offAllNamed(AppRoutes.app);
|
||||
var result = await AuthService.to.login(address);
|
||||
if (result) {
|
||||
Get.offAllNamed(AppRoutes.app);
|
||||
}
|
||||
}
|
||||
},
|
||||
child: const Text('开始导入'),
|
||||
|
||||
Reference in New Issue
Block a user