Show error message / ledger import
This commit is contained in:
parent
210ecee2f4
commit
4cffa9d391
|
@ -235,10 +235,14 @@ class _AddAccountPageState extends State<AddAccountPage> {
|
|||
}
|
||||
|
||||
_importLedger() async {
|
||||
final account =
|
||||
await WarpApi.importFromLedger(active.coin, _nameController.text);
|
||||
active.setActiveAccount(_coin, account);
|
||||
Navigator.of(context).pushReplacementNamed("/account");
|
||||
try {
|
||||
final account =
|
||||
await WarpApi.importFromLedger(active.coin, _nameController.text);
|
||||
active.setActiveAccount(_coin, account);
|
||||
Navigator.of(context).pushReplacementNamed("/account");
|
||||
} on String catch (msg) {
|
||||
showSnackBar(msg, error: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 1.4.0+436
|
||||
version: 1.4.0+437
|
||||
|
||||
environment:
|
||||
sdk: ">=2.12.0 <3.0.0"
|
||||
|
|
Loading…
Reference in New Issue