Skip to content

Commit cdc2e04

Browse files
committed
clean up merge conflicts
1 parent cce9faa commit cdc2e04

2 files changed

Lines changed: 30 additions & 32 deletions

File tree

lib/pages/add_wallet_views/restore_wallet_view/restore_view_only_wallet_view.dart

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import '../../../widgets/custom_buttons/app_bar_icon_button.dart';
3434
import '../../../widgets/desktop/desktop_app_bar.dart';
3535
import '../../../widgets/desktop/desktop_scaffold.dart';
3636
import '../../../widgets/desktop/primary_button.dart';
37-
import '../../../widgets/stack_text_field.dart';
3837
import '../../../widgets/options.dart';
38+
import '../../../widgets/stack_text_field.dart';
3939
import '../../home_view/home_view.dart';
4040
import 'confirm_recovery_dialog.dart';
4141
import '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(),

lib/pages/wallet_view/wallet_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ import '../send_view/frost_ms/frost_send_view.dart';
104104
import '../send_view/send_view.dart';
105105
import '../settings_views/wallet_settings_view/wallet_network_settings_view/wallet_network_settings_view.dart';
106106
import '../settings_views/wallet_settings_view/wallet_settings_view.dart';
107-
import '../signing/signing_view.dart';
108107
import '../settings_views/wallet_settings_view/wallet_settings_wallet_settings/spark_view_key_view.dart';
108+
import '../signing/signing_view.dart';
109109
import '../spark_names/spark_names_home_view.dart';
110110
import '../token_view/my_tokens_view.dart';
111111
import 'sub_widgets/transactions_list.dart';

0 commit comments

Comments
 (0)