Skip to content

Commit 871e5b7

Browse files
committed
chore: dart format
1 parent 2d2a1dd commit 871e5b7

3 files changed

Lines changed: 30 additions & 27 deletions

File tree

lib/pages/settings_views/wallet_settings_view/wallet_settings_view.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,9 @@ class _WalletSettingsViewState extends ConsumerState<WalletSettingsView> {
421421
iconSize: 16,
422422
title: "Epicbox Servers",
423423
onPressed: () {
424-
Navigator.of(context).pushNamed(
425-
ManageEpicboxView.routeName,
426-
arguments: walletId,
427-
);
424+
Navigator.of(
425+
context,
426+
).pushNamed(ManageEpicboxView.routeName, arguments: walletId);
428427
},
429428
),
430429
if (canBackup) const SizedBox(height: 8),

lib/pages/settings_views/wallet_settings_view/wallet_settings_wallet_settings/delete_wallet_warning_view.dart

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,19 @@ class DeleteWalletWarningView extends ConsumerWidget {
5959
),
6060
const SizedBox(height: 16),
6161
RoundedContainer(
62-
color:
63-
Theme.of(
64-
context,
65-
).extension<StackColors>()!.warningBackground,
62+
color: Theme.of(
63+
context,
64+
).extension<StackColors>()!.warningBackground,
6665
child: Text(
6766
"You are going to permanently delete your wallet.\n\n"
6867
"If you delete your wallet, the only way you can have access"
6968
" to your funds is by using your backup key.\n\n"
7069
"${AppConfig.appName} does not keep nor is able to restore "
7170
"your backup key or your wallet.\n\nPLEASE SAVE YOUR BACKUP KEY.",
7271
style: STextStyles.baseXS(context).copyWith(
73-
color:
74-
Theme.of(
75-
context,
76-
).extension<StackColors>()!.warningForeground,
72+
color: Theme.of(
73+
context,
74+
).extension<StackColors>()!.warningForeground,
7775
),
7876
),
7977
),
@@ -88,10 +86,9 @@ class DeleteWalletWarningView extends ConsumerWidget {
8886
child: Text(
8987
"Cancel",
9088
style: STextStyles.button(context).copyWith(
91-
color:
92-
Theme.of(
93-
context,
94-
).extension<StackColors>()!.accentColorDark,
89+
color: Theme.of(
90+
context,
91+
).extension<StackColors>()!.accentColorDark,
9592
),
9693
),
9794
),
@@ -130,10 +127,9 @@ class DeleteWalletWarningView extends ConsumerWidget {
130127
myName: wallet.frostInfo.myName,
131128
config: results[1]!,
132129
keys: results[0]!,
133-
prevGen:
134-
results[2] == null || results[3] == null
135-
? null
136-
: (config: results[3]!, keys: results[2]!),
130+
prevGen: results[2] == null || results[3] == null
131+
? null
132+
: (config: results[3]!, keys: results[2]!),
137133
);
138134
}
139135
} else {

lib/utilities/address_utils.dart

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -326,21 +326,29 @@ class AddressUtils {
326326
if ((mimblewimblecoinAddress.startsWith("http://") ||
327327
mimblewimblecoinAddress.startsWith("https://")) &&
328328
mimblewimblecoinAddress.contains("@")) {
329-
mimblewimblecoinAddress =
330-
mimblewimblecoinAddress.replaceAll("http://", "");
331-
mimblewimblecoinAddress =
332-
mimblewimblecoinAddress.replaceAll("https://", "");
329+
mimblewimblecoinAddress = mimblewimblecoinAddress.replaceAll(
330+
"http://",
331+
"",
332+
);
333+
mimblewimblecoinAddress = mimblewimblecoinAddress.replaceAll(
334+
"https://",
335+
"",
336+
);
333337
}
334338
// strip mailto: prefix
335339
if (mimblewimblecoinAddress.startsWith("mailto:")) {
336-
mimblewimblecoinAddress =
337-
mimblewimblecoinAddress.replaceAll("mailto:", "");
340+
mimblewimblecoinAddress = mimblewimblecoinAddress.replaceAll(
341+
"mailto:",
342+
"",
343+
);
338344
}
339345
// strip / suffix if the address contains an @ symbol (and is thus an mwcmqs address)
340346
if (mimblewimblecoinAddress.endsWith("/") &&
341347
mimblewimblecoinAddress.contains("@")) {
342348
mimblewimblecoinAddress = mimblewimblecoinAddress.substring(
343-
0, mimblewimblecoinAddress.length - 1);
349+
0,
350+
mimblewimblecoinAddress.length - 1,
351+
);
344352
}
345353
return mimblewimblecoinAddress;
346354
}

0 commit comments

Comments
 (0)