@@ -34,8 +34,8 @@ import '../../../widgets/custom_buttons/app_bar_icon_button.dart';
3434import '../../../widgets/desktop/desktop_app_bar.dart' ;
3535import '../../../widgets/desktop/desktop_scaffold.dart' ;
3636import '../../../widgets/desktop/primary_button.dart' ;
37- import '../../../widgets/stack_text_field.dart' ;
3837import '../../../widgets/options.dart' ;
38+ import '../../../widgets/stack_text_field.dart' ;
3939import '../../home_view/home_view.dart' ;
4040import 'confirm_recovery_dialog.dart' ;
4141import 'sub_widgets/restore_failed_dialog.dart' ;
@@ -402,18 +402,19 @@ class _RestoreViewOnlyWalletViewState
402402 "Single address" ,
403403 "Extended pub key" ,
404404 if (widget.coin is Firo )
405- isDesktop ? "Spark View Key" : "View Key"
405+ isDesktop ? "Spark View Key" : "View Key" ,
406406 ],
407- onColor: Theme .of (context)
408- . extension < StackColors > () !
409- .popupBG,
410- offColor: Theme .of (context)
411- . extension < StackColors > () !
412- .textFieldDefaultBG,
413- selectedIndex: _walletType.index- 1 ,
407+ onColor: Theme .of (
408+ context,
409+ ). extension < StackColors > () ! .popupBG,
410+ offColor: Theme .of (
411+ context,
412+ ). extension < StackColors > () ! .textFieldDefaultBG,
413+ selectedIndex: _walletType.index - 1 ,
414414 onValueChanged: (value) {
415415 setState (() {
416- _walletType = ViewOnlyWalletType .values[value+ 1 ];
416+ _walletType =
417+ ViewOnlyWalletType .values[value + 1 ];
417418 });
418419 },
419420 decoration: BoxDecoration (
@@ -424,10 +425,9 @@ class _RestoreViewOnlyWalletViewState
424425 ),
425426 ),
426427 ),
427- SizedBox (
428- height: isDesktop ? 24 : 16 ,
429- ),
430- if (! isElectrumX || _walletType == ViewOnlyWalletType .addressOnly)
428+ SizedBox (height: isDesktop ? 24 : 16 ),
429+ if (! isElectrumX ||
430+ _walletType == ViewOnlyWalletType .addressOnly)
431431 FullTextField (
432432 key: const Key ("viewOnlyAddressRestoreFieldKey" ),
433433 label: "Address" ,
@@ -447,11 +447,9 @@ class _RestoreViewOnlyWalletViewState
447447 }
448448 },
449449 ),
450- if (! isElectrumX)
451- SizedBox (
452- height: isDesktop ? 16 : 12 ,
453- ),
454- if (isElectrumX && _walletType == ViewOnlyWalletType .xPub)
450+ if (! isElectrumX) SizedBox (height: isDesktop ? 16 : 12 ),
451+ if (isElectrumX &&
452+ _walletType == ViewOnlyWalletType .xPub)
455453 DropdownButtonHideUnderline (
456454 child: DropdownButton2 <String >(
457455 value: _currentDropDownValue,
@@ -519,11 +517,11 @@ class _RestoreViewOnlyWalletViewState
519517 ),
520518 ),
521519 ),
522- if (isElectrumX && _walletType == ViewOnlyWalletType .xPub)
523- SizedBox (
524- height: isDesktop ? 16 : 12 ,
525- ),
526- if ( ! isElectrumX || _walletType == ViewOnlyWalletType .xPub)
520+ if (isElectrumX &&
521+ _walletType == ViewOnlyWalletType .xPub)
522+ SizedBox ( height: isDesktop ? 16 : 12 ) ,
523+ if ( ! isElectrumX ||
524+ _walletType == ViewOnlyWalletType .xPub)
527525 FullTextField (
528526 key: const Key ("viewOnlyKeyRestoreFieldKey" ),
529527 label:
@@ -545,18 +543,18 @@ class _RestoreViewOnlyWalletViewState
545543 },
546544 ),
547545 if (_walletType == ViewOnlyWalletType .spark)
548- SizedBox (
549- height: isDesktop ? 16 : 12 ,
550- ),
546+ SizedBox (height: isDesktop ? 16 : 12 ),
551547 if (_walletType == ViewOnlyWalletType .spark)
552548 FullTextField (
553- key: const Key ("viewOnlySparkViewKeyRestoreFieldKey" ),
549+ key: const Key (
550+ "viewOnlySparkViewKeyRestoreFieldKey" ,
551+ ),
554552 label: "Spark View Key" ,
555553 controller: sparkViewKeyController,
556554 onChanged: (value) {
557- setState (() {
558- _enableRestoreButton = value.isNotEmpty;
559- });
555+ setState (() {
556+ _enableRestoreButton = value.isNotEmpty;
557+ });
560558 },
561559 ),
562560 if (! isDesktop) const Spacer (),
0 commit comments