What changed, and why it matters
This commit is purely a code-formatting cleanup. It changes whitespace, line breaks, and indentation across many Dart files so the project's automated style checks (CI) pass. No program logic, security behavior, or user-facing functionality was altered.
No security action needed. Treat as a normal code-style maintenance commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff shows only stylistic reformatting: breaking long method chains onto multiple lines, collapsing short string literals onto single lines, adjusting indentation, and adding/removing blank lines. There are no semantic changes to function bodies, no new imports, no altered control flow, and no changes to security-sensitive operations such as cryptography, network calls, input validation, or storage handling.
Changed components
Inspect captured patch +3154 / −3972
diff --git a/lib/electrumx_rpc/electrumx_client.dart b/lib/electrumx_rpc/electrumx_client.dart
index 7f7ade1..89bac9a 100644
--- a/lib/electrumx_rpc/electrumx_client.dart
+++ b/lib/electrumx_rpc/electrumx_client.dart
@@ -1082,9 +1082,9 @@ class ElectrumXClient {
command: "spark.getmempoolsparktxids",
);
- final txids = List<String>.from(
- response as List,
- ).map((e) => e.toHexReversedFromBase64).toSet();
+ final txids = List<String>.from(response as List)
+ .map((e) => e.toHexReversedFromBase64)
+ .toSet();
Logging.instance.d(
"Finished ElectrumXClient.getMempoolTxids(). "
@@ -1295,8 +1295,7 @@ class ElectrumXClient {
required int endIndex, // exclusive
}) async {
try {
- const command =
- "spark.getsparkanonymitysetsector"; // TODO verify this will be correct
+ const command = "spark.getsparkanonymitysetsector"; // TODO verify this will be correct
final start = DateTime.now();
final response = await request(
requestID: requestID,
diff --git a/lib/models/isar/models/blockchain_data/address.g.dart b/lib/models/isar/models/blockchain_data/address.g.dart
index 6bd5857..48017f5 100644
--- a/lib/models/isar/models/blockchain_data/address.g.dart
+++ b/lib/models/isar/models/blockchain_data/address.g.dart
@@ -223,11 +223,10 @@ P _addressDeserializeProp<P>(
return (reader.readLong(offset)) as P;
case 1:
return (reader.readObjectOrNull<DerivationPath>(
- offset,
- DerivationPathSchema.deserialize,
- allOffsets,
- ))
- as P;
+ offset,
+ DerivationPathSchema.deserialize,
+ allOffsets,
+ )) as P;
case 2:
return (reader.readStringOrNull(offset)) as P;
case 3:
diff --git a/lib/models/isar/stack_theme.g.dart b/lib/models/isar/stack_theme.g.dart
index adeb670..1a98ae8 100644
--- a/lib/models/isar/stack_theme.g.dart
+++ b/lib/models/isar/stack_theme.g.dart
@@ -1315,18 +1315,16 @@ P _stackThemeDeserializeProp<P>(
return (reader.readLong(offset)) as P;
case 6:
return (reader.readObjectOrNull<ThemeAssets>(
- offset,
- ThemeAssetsSchema.deserialize,
- allOffsets,
- ))
- as P;
+ offset,
+ ThemeAssetsSchema.deserialize,
+ allOffsets,
+ )) as P;
case 7:
return (reader.readObjectOrNull<ThemeAssetsV2>(
- offset,
- ThemeAssetsV2Schema.deserialize,
- allOffsets,
- ))
- as P;
+ offset,
+ ThemeAssetsV2Schema.deserialize,
+ allOffsets,
+ )) as P;
case 8:
return (reader.readLong(offset)) as P;
case 9:
@@ -1635,11 +1633,10 @@ P _stackThemeDeserializeProp<P>(
return (reader.readLong(offset)) as P;
case 161:
return (reader.readObjectOrNull<ThemeAssetsV3>(
- offset,
- ThemeAssetsV3Schema.deserialize,
- allOffsets,
- ))
- as P;
+ offset,
+ ThemeAssetsV3Schema.deserialize,
+ allOffsets,
+ )) as P;
default:
throw IsarError('Unknown property with id $propertyId');
}
diff --git a/lib/pages/buy_view/buy_form.dart b/lib/pages/buy_view/buy_form.dart
index 48aa3b7..7973bea 100644
--- a/lib/pages/buy_view/buy_form.dart
+++ b/lib/pages/buy_view/buy_form.dart
@@ -257,9 +257,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
Expanded(
child: RoundedWhiteContainer(
padding: const EdgeInsets.all(16),
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
child: CryptoSelectionView(coins: coins),
),
),
@@ -383,9 +383,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
Expanded(
child: RoundedWhiteContainer(
padding: const EdgeInsets.all(16),
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
child: FiatSelectionView(fiats: fiats),
),
),
@@ -516,9 +516,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
child: Text(
"Ok",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
onPressed: () {
@@ -602,9 +602,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
child: Text(
"Ok",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
onPressed: () {
@@ -676,9 +676,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
Expanded(
child: RoundedWhiteContainer(
padding: const EdgeInsets.all(16),
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
child: BuyQuotePreviewView(quote: quote),
),
),
@@ -881,9 +881,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
.extension<StackColors>()!
.currencyListItemBG
.withOpacity(_hovering1 ? 0.3 : 0)
- : Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ : Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
child: Padding(
padding: const EdgeInsets.all(12),
child: Row(
@@ -921,9 +921,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
Text(
"I want to pay with",
style: STextStyles.itemSubtitle(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark3,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark3,
),
),
],
@@ -947,9 +947,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
.extension<StackColors>()!
.currencyListItemBG
.withOpacity(_hovering2 ? 0.3 : 0)
- : Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ : Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
child: Padding(
padding: const EdgeInsets.only(
left: 12.0,
@@ -965,9 +965,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
horizontal: 6,
),
decoration: BoxDecoration(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.currencyListItemBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .currencyListItemBG,
borderRadius: BorderRadius.circular(4),
),
child: Text(
@@ -976,9 +976,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
),
textAlign: TextAlign.center,
style: STextStyles.smallMed12(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
@@ -1016,9 +1016,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
Text(
buyWithFiat ? "Enter amount" : "Enter crypto amount",
style: STextStyles.itemSubtitle(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark3,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark3,
),
),
CustomTextButton(
@@ -1075,9 +1075,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
),
hintText: "0",
hintStyle: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
@@ -1123,9 +1123,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
? selectedFiat?.ticker ?? "ERR"
: selectedCrypto?.ticker ?? "ERR",
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
],
@@ -1208,9 +1208,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
Text(
"Enter receiving address",
style: STextStyles.itemSubtitle(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark3,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark3,
),
),
if (AppConfig.isStackCoin(selectedCrypto?.ticker))
diff --git a/lib/pages/cakepay/cakepay_card_detail_view.dart b/lib/pages/cakepay/cakepay_card_detail_view.dart
index d11437b..c53633e 100644
--- a/lib/pages/cakepay/cakepay_card_detail_view.dart
+++ b/lib/pages/cakepay/cakepay_card_detail_view.dart
@@ -203,9 +203,9 @@ class _CakePayCardDetailViewState extends ConsumerState<CakePayCardDetailView> {
condition: !isDesktop,
builder: (child) => Background(
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
leading: AppBarBackButton(
onPressed: () => Navigator.of(context).pop(),
@@ -468,9 +468,9 @@ class _DenominationSelector extends StatelessWidget {
: STextStyles.itemSubtitle12(context))
.copyWith(
color: selected
- ? Theme.of(
- context,
- ).extension<StackColors>()!.textDark
+ ? Theme.of(context)
+ .extension<StackColors>()!
+ .textDark
: null,
),
),
@@ -605,9 +605,8 @@ class _TermsCheckbox extends StatelessWidget {
const TextSpan(text: "I agree to the "),
TextSpan(
text: "terms and conditions",
- style: STextStyles.richLink(
- context,
- ).copyWith(fontSize: isDesktop ? null : 14),
+ style: STextStyles.richLink(context)
+ .copyWith(fontSize: isDesktop ? null : 14),
recognizer: TapGestureRecognizer()..onTap = onOpenTerms,
),
const TextSpan(
diff --git a/lib/pages/cakepay/cakepay_order_view.dart b/lib/pages/cakepay/cakepay_order_view.dart
index c805e1c..e71d95a 100644
--- a/lib/pages/cakepay/cakepay_order_view.dart
+++ b/lib/pages/cakepay/cakepay_order_view.dart
@@ -461,9 +461,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
)
: STextStyles.itemSubtitle12(context))
.copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textSubtitle1,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textSubtitle1,
),
),
],
@@ -548,13 +548,13 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
: STextStyles.itemSubtitle12(context))
.copyWith(
color: isExpired
- ? Theme.of(
- context,
- ).extension<StackColors>()!.accentColorRed
+ ? Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorRed
: remaining.inMinutes < 5
- ? Theme.of(
- context,
- ).extension<StackColors>()!.accentColorOrange
+ ? Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorOrange
: null,
fontWeight: FontWeight.w600,
),
@@ -583,9 +583,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
Assets.svg.checkCircle,
width: 20,
height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorGreen,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorGreen,
),
const SizedBox(width: 8),
Expanded(
@@ -600,9 +600,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
)
: STextStyles.itemSubtitle12(context))
.copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorGreen,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorGreen,
),
),
),
@@ -648,9 +648,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
Assets.svg.circleX,
width: 20,
height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textSubtitle1,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textSubtitle1,
),
const SizedBox(width: 8),
Expanded(
@@ -661,9 +661,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
? STextStyles.desktopTextExtraExtraSmall(context)
: STextStyles.itemSubtitle12(context))
.copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textSubtitle1,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textSubtitle1,
),
),
),
@@ -725,9 +725,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
border: Border(
bottom: BorderSide(
color: isSelected
- ? Theme.of(
- context,
- ).extension<StackColors>()!.accentColorBlue
+ ? Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorBlue
: Colors.transparent,
width: 2,
),
@@ -744,9 +744,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
: STextStyles.itemSubtitle12(context))
.copyWith(
color: isSelected
- ? Theme.of(
- context,
- ).extension<StackColors>()!.accentColorBlue
+ ? Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorBlue
: null,
fontWeight: isSelected ? FontWeight.w600 : null,
),
@@ -918,9 +918,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
condition: !isDesktop,
builder: (child) => Background(
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
leading: AppBarBackButton(
onPressed: () => Navigator.of(context).pop(),
diff --git a/lib/pages/coin_control/coin_control_view.dart b/lib/pages/coin_control/coin_control_view.dart
index 730001c..e7e58be 100644
--- a/lib/pages/coin_control/coin_control_view.dart
+++ b/lib/pages/coin_control/coin_control_view.dart
@@ -172,9 +172,9 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
},
child: Background(
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
automaticallyImplyLeading: false,
leading: _isSearching
@@ -185,9 +185,9 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
icon: XIcon(
width: 24,
height: 24,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.topNavIconPrimary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .topNavIconPrimary,
),
onPressed: () {
setState(() {
@@ -222,9 +222,9 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
Assets.svg.x,
width: 20,
height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.topNavIconPrimary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .topNavIconPrimary,
),
onPressed: () {
// show search
@@ -244,9 +244,9 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
Assets.svg.search,
width: 20,
height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.topNavIconPrimary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .topNavIconPrimary,
),
onPressed: () {
// show search
@@ -290,9 +290,9 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
"outputs at your discretion. Tap the output circle to "
"select.",
style: STextStyles.w500_14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textSubtitle1,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textSubtitle1,
),
),
),
@@ -302,13 +302,13 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
height: 48,
child: Toggle(
key: UniqueKey(),
- onColor: Theme.of(
- context,
- ).extension<StackColors>()!.popupBG,
+ onColor: Theme.of(context)
+ .extension<StackColors>()!
+ .popupBG,
onText: "Available outputs",
- offColor: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ offColor: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
offText: "Frozen outputs",
isOn: _showBlocked,
onValueChanged: (value) {
@@ -450,15 +450,14 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
},
onPressed: () async {
final result =
- await Navigator.of(
- context,
- ).pushNamed(
- UtxoDetailsView.routeName,
- arguments: Tuple2(
- utxo.id,
- widget.walletId,
- ),
- );
+ await Navigator.of(context)
+ .pushNamed(
+ UtxoDetailsView.routeName,
+ arguments: Tuple2(
+ utxo.id,
+ widget.walletId,
+ ),
+ );
if (mounted && result == "refresh") {
setState(() {});
}
@@ -483,9 +482,9 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
border: Theme.of(context)
.extension<StackColors>()!
.backgroundAppBar,
- background: Theme.of(
- context,
- ).extension<StackColors>()!.popupBG,
+ background: Theme.of(context)
+ .extension<StackColors>()!
+ .popupBG,
animationDurationMultiplier:
0.2 * entry.value.length,
onExpandWillChange: (state) {
@@ -635,13 +634,13 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
widget.type == CoinControlViewType.manage)
Container(
decoration: BoxDecoration(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.backgroundAppBar,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .backgroundAppBar,
boxShadow: [
- Theme.of(
- context,
- ).extension<StackColors>()!.standardBoxShadow,
+ Theme.of(context)
+ .extension<StackColors>()!
+ .standardBoxShadow,
],
),
child: Padding(
@@ -672,13 +671,13 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
if (!_showBlocked && widget.type == CoinControlViewType.use)
Container(
decoration: BoxDecoration(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.backgroundAppBar,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .backgroundAppBar,
boxShadow: [
- Theme.of(
- context,
- ).extension<StackColors>()!.standardBoxShadow,
+ Theme.of(context)
+ .extension<StackColors>()!
+ .standardBoxShadow,
],
),
child: Padding(
diff --git a/lib/pages/exchange_view/exchange_form.dart b/lib/pages/exchange_view/exchange_form.dart
index 4acf842..c548896 100644
--- a/lib/pages/exchange_view/exchange_form.dart
+++ b/lib/pages/exchange_view/exchange_form.dart
@@ -120,9 +120,10 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
builder: (_) => WillPopScope(
onWillPop: () async => false,
child: Container(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.overlay.withOpacity(0.6),
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .overlay
+ .withOpacity(0.6),
child: const CustomLoadingOverlay(
message: "Updating exchange rate",
eventBus: null,
@@ -368,9 +369,9 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
Expanded(
child: RoundedWhiteContainer(
padding: const EdgeInsets.all(16),
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
child: ExchangeCurrencySelectionView(
pairedCurrency: paired,
isFixedRate: isFixedRate,
@@ -517,8 +518,7 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
context: context,
builder: (context) => const StackOkDialog(
title: "WOW error",
- message:
- "Wownero is temporarily disabled as a receiving currency for fixed rate trades due to network issues",
+ message: "Wownero is temporarily disabled as a receiving currency for fixed rate trades due to network issues",
),
);
}
@@ -680,9 +680,8 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
);
} else {
unawaited(
- Navigator.of(
- context,
- ).pushNamed(Step2View.routeName, arguments: model),
+ Navigator.of(context)
+ .pushNamed(Step2View.routeName, arguments: model),
);
}
} else {
@@ -703,9 +702,8 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
);
} else {
unawaited(
- Navigator.of(
- context,
- ).pushNamed(Step1View.routeName, arguments: model),
+ Navigator.of(context)
+ .pushNamed(Step1View.routeName, arguments: model),
);
}
}
@@ -1006,13 +1004,13 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
textStyle: STextStyles.smallMed14(context).copyWith(
color: Theme.of(context).extension<StackColors>()!.textDark,
),
- buttonColor: Theme.of(
- context,
- ).extension<StackColors>()!.buttonBackSecondary,
+ buttonColor: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonBackSecondary,
borderRadius: Constants.size.circularBorderRadius,
- background: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ background: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
onTap: () {
if (_sendController.text == "-") {
_sendController.text = "";
@@ -1048,9 +1046,9 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
padding: isDesktop
? const EdgeInsets.all(6)
: const EdgeInsets.all(2),
- color: Theme.of(
- context,
- ).extension<StackColors>()!.buttonBackSecondary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonBackSecondary,
radiusMultiplier: 0.75,
child: GestureDetector(
onTap: () async {
@@ -1062,9 +1060,9 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
Assets.svg.swap,
width: 20,
height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
@@ -1083,13 +1081,13 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
textStyle: STextStyles.smallMed14(context).copyWith(
color: Theme.of(context).extension<StackColors>()!.textDark,
),
- buttonColor: Theme.of(
- context,
- ).extension<StackColors>()!.buttonBackSecondary,
+ buttonColor: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonBackSecondary,
borderRadius: Constants.size.circularBorderRadius,
- background: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ background: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
onTap: rateType == ExchangeRateType.estimated
? null
: () {
diff --git a/lib/pages/exchange_view/exchange_step_views/step_2_view.dart b/lib/pages/exchange_view/exchange_step_views/step_2_view.dart
index 1b926dd..8e91edb 100644
--- a/lib/pages/exchange_view/exchange_step_views/step_2_view.dart
+++ b/lib/pages/exchange_view/exchange_step_views/step_2_view.dart
@@ -858,44 +858,43 @@ class _Step2ViewState extends ConsumerState<Step2View> {
)
.state =
true;
- Navigator.of(context)
- .pushNamed(
- AddressBookView
- .routeName,
- )
- .then((_) {
- ref
- .read(
- exchangeFlowIsActiveStateProvider
- .state,
- )
- .state =
- false;
- final address = ref
+ Navigator.of(
+ context,
+ ).pushNamed(AddressBookView.routeName).then((
+ _,
+ ) {
+ ref
.read(
- exchangeFromAddressBookAddressStateProvider
+ exchangeFlowIsActiveStateProvider
.state,
)
- .state;
- if (address
- .isNotEmpty) {
+ .state =
+ false;
+ final address = ref
+ .read(
+ exchangeFromAddressBookAddressStateProvider
+ .state,
+ )
+ .state;
+ if (address
+ .isNotEmpty) {
+ _refundController
+ .text =
+ address;
+ model.refundAddress =
_refundController
- .text =
- address;
- model.refundAddress =
- _refundController
- .text;
- }
- setState(() {
- enableNext =
- _toController
- .text
- .isNotEmpty &&
- _refundController
- .text
- .isNotEmpty;
- });
- });
+ .text;
+ }
+ setState(() {
+ enableNext =
+ _toController
+ .text
+ .isNotEmpty &&
+ _refundController
+ .text
+ .isNotEmpty;
+ });
+ });
},
child:
const AddressBookIcon(),
diff --git a/lib/pages/exchange_view/exchange_step_views/step_4_view.dart b/lib/pages/exchange_view/exchange_step_views/step_4_view.dart
index 84c96c0..dc75032 100644
--- a/lib/pages/exchange_view/exchange_step_views/step_4_view.dart
+++ b/lib/pages/exchange_view/exchange_step_views/step_4_view.dart
@@ -133,9 +133,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
child: Text(
"Cancel",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.buttonTextSecondary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonTextSecondary,
),
),
),
@@ -195,9 +195,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
return await showModalBottomSheet<bool?>(
context: context,
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.backgroundAppBar,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .backgroundAppBar,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(
top: Radius.circular(Constants.size.circularBorderRadius * 3),
@@ -384,9 +384,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
child: Text(
"Ok",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.buttonTextSecondary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonTextSecondary,
),
),
onPressed: () {
@@ -410,9 +410,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
},
child: Background(
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
leading: Padding(
padding: const EdgeInsets.all(10),
@@ -425,9 +425,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
width: 24,
height: 24,
colorFilter: ColorFilter.mode(
- Theme.of(
- context,
- ).extension<StackColors>()!.topNavIconPrimary,
+ Theme.of(context)
+ .extension<StackColors>()!
+ .topNavIconPrimary,
.srcIn,
),
),
@@ -577,9 +577,9 @@ class _WarningInfo extends StatelessWidget {
"You must send at least "
"${model.payInAmount} ${model.sendTicker}. ",
style: STextStyles.label700(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.warningForeground,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .warningForeground,
),
children: [
TextSpan(
@@ -589,9 +589,9 @@ class _WarningInfo extends StatelessWidget {
" your transaction may not be converted and it may not be"
" refunded.",
style: STextStyles.label(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.warningForeground,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .warningForeground,
),
),
],
diff --git a/lib/pages/exchange_view/sub_widgets/sorted_exchange_providers.dart b/lib/pages/exchange_view/sub_widgets/sorted_exchange_providers.dart
index b0a99c7..92a3293 100644
--- a/lib/pages/exchange_view/sub_widgets/sorted_exchange_providers.dart
+++ b/lib/pages/exchange_view/sub_widgets/sorted_exchange_providers.dart
@@ -76,9 +76,8 @@ class _SortedExchangeProvidersState
Amount _getRate(Estimate e, Decimal amount, String rcvTicker) {
int decimals;
try {
- decimals = AppConfig.getCryptoCurrencyForTicker(
- rcvTicker,
- )!.fractionDigits;
+ decimals = AppConfig.getCryptoCurrencyForTicker(rcvTicker)!
+ .fractionDigits;
} catch (_) {
decimals = 8; // some reasonable alternative
}
@@ -172,9 +171,9 @@ class _SortedExchangeProvidersState
estimate: null,
pair: pair,
rateString: message ?? "Failed to fetch rate",
- rateColor: Theme.of(
- context,
- ).extension<StackColors>()!.textError,
+ rateColor: Theme.of(context)
+ .extension<StackColors>()!
+ .textError,
);
},
);
@@ -223,9 +222,9 @@ class _SortedExchangeProvidersState
Util.isDesktop
? Container(
height: 1,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
)
: const SizedBox(height: 16),
child,
diff --git a/lib/pages/masternodes/sub_widgets/register_masternode_form.dart b/lib/pages/masternodes/sub_widgets/register_masternode_form.dart
index 18b4ac5..e713616 100644
--- a/lib/pages/masternodes/sub_widgets/register_masternode_form.dart
+++ b/lib/pages/masternodes/sub_widgets/register_masternode_form.dart
@@ -54,9 +54,9 @@ class _RegisterMasternodeFormState
TextStyle _getStyle(BuildContext context) {
return Util.isDesktop
? STextStyles.desktopTextExtraExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
)
: STextStyles.smallMed12(context);
}
@@ -211,23 +211,20 @@ class _RegisterMasternodeFormState
children: [
Text(
"Masternode collateral",
- style: STextStyles.w500_12(
- context,
- ).copyWith(color: stack.textSubtitle1),
+ style: STextStyles.w500_12(context)
+ .copyWith(color: stack.textSubtitle1),
),
const SizedBox(height: 4),
SelectableText(
widget.collateralAddress,
- style: STextStyles.w500_14(
- context,
- ).copyWith(color: stack.textDark),
+ style: STextStyles.w500_14(context)
+ .copyWith(color: stack.textDark),
),
const SizedBox(height: 4),
SelectableText(
"${widget.collateralTxid}:${widget.collateralVout}",
- style: STextStyles.w500_12(
- context,
- ).copyWith(color: stack.textSubtitle1),
+ style: STextStyles.w500_12(context)
+ .copyWith(color: stack.textSubtitle1),
),
],
),
diff --git a/lib/pages/receive_view/addresses/address_qr_popup.dart b/lib/pages/receive_view/addresses/address_qr_popup.dart
index 6af226f..b7803be 100644
--- a/lib/pages/receive_view/addresses/address_qr_popup.dart
+++ b/lib/pages/receive_view/addresses/address_qr_popup.dart
@@ -159,9 +159,9 @@ class _AddressQrPopupState extends State<AddressQrPopup> {
Assets.svg.share,
width: 20,
height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.buttonTextSecondary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonTextSecondary,
),
),
),
@@ -177,9 +177,9 @@ class _AddressQrPopupState extends State<AddressQrPopup> {
Assets.svg.arrowDown,
width: 20,
height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.buttonTextPrimary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonTextPrimary,
),
),
),
diff --git a/lib/pages/receive_view/generate_receiving_uri_qr_code_view.dart b/lib/pages/receive_view/generate_receiving_uri_qr_code_view.dart
index 0c5e3d7..7930f38 100644
--- a/lib/pages/receive_view/generate_receiving_uri_qr_code_view.dart
+++ b/lib/pages/receive_view/generate_receiving_uri_qr_code_view.dart
@@ -238,9 +238,9 @@ class _GenerateUriQrCodeViewState extends ConsumerState<GenerateUriQrCodeView> {
width: 14,
height: 14,
colorFilter: .mode(
- Theme.of(
- context,
- ).extension<StackColors>()!.buttonTextSecondary,
+ Theme.of(context)
+ .extension<StackColors>()!
+ .buttonTextSecondary,
.srcIn,
),
),
@@ -299,9 +299,9 @@ class _GenerateUriQrCodeViewState extends ConsumerState<GenerateUriQrCodeView> {
condition: !isDesktop,
builder: (child) => Background(
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
leading: AppBarBackButton(
onPressed: () async {
@@ -382,9 +382,9 @@ class _GenerateUriQrCodeViewState extends ConsumerState<GenerateUriQrCodeView> {
focusNode: _amountFocusNode,
style: isDesktop
? STextStyles.desktopTextExtraExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
height: 1.8,
)
: STextStyles.field(context),
@@ -463,9 +463,9 @@ class _GenerateUriQrCodeViewState extends ConsumerState<GenerateUriQrCodeView> {
focusNode: _noteFocusNode,
style: isDesktop
? STextStyles.desktopTextExtraExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
height: 1.8,
)
: STextStyles.field(context),
@@ -534,9 +534,9 @@ class _GenerateUriQrCodeViewState extends ConsumerState<GenerateUriQrCodeView> {
children: [
const SizedBox(height: 20),
RoundedWhiteContainer(
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
width: isDesktop ? 370 : null,
child: Column(
children: [
diff --git a/lib/pages/salvium_stake/salvium_create_stake_view.dart b/lib/pages/salvium_stake/salvium_create_stake_view.dart
index 2916b7e..ca62f24 100644
--- a/lib/pages/salvium_stake/salvium_create_stake_view.dart
+++ b/lib/pages/salvium_stake/salvium_create_stake_view.dart
@@ -242,9 +242,9 @@ class _SalviumCreateStakeViewState
child: Text(
"Ok",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
onPressed: () {
@@ -332,9 +332,9 @@ class _SalviumCreateStakeViewState
Text(
"Amount",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -372,9 +372,9 @@ class _SalviumCreateStakeViewState
hintText: "0",
hintStyle: Util.isDesktop
? STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
)
: STextStyles.fieldLabel(context).copyWith(fontSize: 14),
prefixIcon: FittedBox(
@@ -384,9 +384,9 @@ class _SalviumCreateStakeViewState
child: Text(
ref.watch(pAmountUnit(coin)).unitForCoin(coin),
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
diff --git a/lib/pages/send_view/frost_ms/frost_send_view.dart b/lib/pages/send_view/frost_ms/frost_send_view.dart
index 9f3c8d5..ce67095 100644
--- a/lib/pages/send_view/frost_ms/frost_send_view.dart
+++ b/lib/pages/send_view/frost_ms/frost_send_view.dart
@@ -165,9 +165,9 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
child: Text(
"Ok",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
onPressed: () {
@@ -245,9 +245,9 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
condition: !Util.isDesktop,
builder: (child) => Background(
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
leading: AppBarBackButton(
onPressed: () async {
@@ -319,9 +319,8 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
children: [
Text(
ref.watch(pWalletName(walletId)),
- style: STextStyles.titleBold12(
- context,
- ).copyWith(fontSize: 14),
+ style: STextStyles.titleBold12(context)
+ .copyWith(fontSize: 14),
overflow: TextOverflow.ellipsis,
maxLines: 1,
),
@@ -330,9 +329,8 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
// ),
Text(
"Available balance",
- style: STextStyles.label(
- context,
- ).copyWith(fontSize: 10),
+ style: STextStyles.label(context)
+ .copyWith(fontSize: 10),
),
],
),
@@ -354,9 +352,8 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
.watch(pWalletBalance(walletId))
.spendable,
),
- style: STextStyles.titleBold12(
- context,
- ).copyWith(fontSize: 10),
+ style: STextStyles.titleBold12(context)
+ .copyWith(fontSize: 10),
textAlign: TextAlign.right,
),
],
@@ -390,9 +387,8 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
: () {
ref
.read(
- pRecipient(
- recipientWidgetIndexes[i],
- ).notifier,
+ pRecipient(recipientWidgetIndexes[i])
+ .notifier,
)
.state =
null;
@@ -439,9 +435,9 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
Text(
"Coin control",
style: STextStyles.w500_14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textSubtitle1,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textSubtitle1,
),
),
CustomTextButton(
diff --git a/lib/pages/send_view/frost_ms/recipient.dart b/lib/pages/send_view/frost_ms/recipient.dart
index 6c31d92..d7bc330 100644
--- a/lib/pages/send_view/frost_ms/recipient.dart
+++ b/lib/pages/send_view/frost_ms/recipient.dart
@@ -300,8 +300,7 @@ class _RecipientState extends ConsumerState<Recipient> {
children: [
!_addressIsEmpty
? TextFieldIconButton(
- semanticsLabel:
- "Clear Button. Clears The Address Field Input.",
+ semanticsLabel: "Clear Button. Clears The Address Field Input.",
key: const Key(
"sendViewClearAddressFieldButtonKey",
),
@@ -317,8 +316,7 @@ class _RecipientState extends ConsumerState<Recipient> {
child: const XIcon(),
)
: TextFieldIconButton(
- semanticsLabel:
- "Paste Button. Pastes From Clipboard To Address Field Input.",
+ semanticsLabel: "Paste Button. Pastes From Clipboard To Address Field Input.",
key: const Key(
"sendViewPasteAddressFieldButtonKey",
),
@@ -428,9 +426,9 @@ class _RecipientState extends ConsumerState<Recipient> {
.watch(pAmountUnit(widget.coin))
.unitForCoin(widget.coin),
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
diff --git a/lib/pages/send_view/send_view.dart b/lib/pages/send_view/send_view.dart
index 9475ca1..13615a0 100644
--- a/lib/pages/send_view/send_view.dart
+++ b/lib/pages/send_view/send_view.dart
@@ -879,8 +879,7 @@ class _SendViewState extends ConsumerState<SendView> {
builder: (context) {
return StackDialog(
title: "Confirm send all",
- message:
- "You are about to send your entire balance. Would you like to continue?",
+ message: "You are about to send your entire balance. Would you like to continue?",
leftButton: TextButton(
style: Theme.of(context)
.extension<StackColors>()!
@@ -888,9 +887,9 @@ class _SendViewState extends ConsumerState<SendView> {
child: Text(
"Cancel",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
onPressed: () {
@@ -1164,9 +1163,9 @@ class _SendViewState extends ConsumerState<SendView> {
child: Text(
"Ok",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
onPressed: () {
@@ -1543,9 +1542,9 @@ class _SendViewState extends ConsumerState<SendView> {
children: [
Container(
decoration: BoxDecoration(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.popupBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .popupBG,
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
@@ -1578,16 +1577,14 @@ class _SendViewState extends ConsumerState<SendView> {
if (isFiro || isMwebEnabled)
Text(
"${balType.name.capitalize()} balance",
- style: STextStyles.label(
- context,
- ).copyWith(fontSize: 10),
+ style: STextStyles.label(context)
+ .copyWith(fontSize: 10),
),
if (coin is! Firo)
Text(
"Available balance",
- style: STextStyles.label(
- context,
- ).copyWith(fontSize: 10),
+ style: STextStyles.label(context)
+ .copyWith(fontSize: 10),
),
],
),
@@ -1808,8 +1805,7 @@ class _SendViewState extends ConsumerState<SendView> {
children: [
_addressToggleFlag
? TextFieldIconButton(
- semanticsLabel:
- "Clear Button. Clears The Address Field Input.",
+ semanticsLabel: "Clear Button. Clears The Address Field Input.",
key: const Key(
"sendViewClearAddressFieldButtonKey",
),
@@ -1832,8 +1828,7 @@ class _SendViewState extends ConsumerState<SendView> {
child: const XIcon(),
)
: TextFieldIconButton(
- semanticsLabel:
- "Paste Button. Pastes From Clipboard To Address Field Input.",
+ semanticsLabel: "Paste Button. Pastes From Clipboard To Address Field Input.",
key: const Key(
"sendViewPasteAddressFieldButtonKey",
),
@@ -1849,8 +1844,7 @@ class _SendViewState extends ConsumerState<SendView> {
.text
.isEmpty)
TextFieldIconButton(
- semanticsLabel:
- "Address Book Button. Opens Address Book For Address Field.",
+ semanticsLabel: "Address Book Button. Opens Address Book For Address Field.",
key: const Key(
"sendViewAddressBookButtonKey",
),
@@ -1870,8 +1864,7 @@ class _SendViewState extends ConsumerState<SendView> {
.text
.isEmpty)
TextFieldIconButton(
- semanticsLabel:
- "Scan QR Button. Opens Camera For Scanning QR Code.",
+ semanticsLabel: "Scan QR Button. Opens Camera For Scanning QR Code.",
key: const Key(
"sendViewScanQrButtonKey",
),
@@ -1928,8 +1921,7 @@ class _SendViewState extends ConsumerState<SendView> {
children: [
memoController.text.isNotEmpty
? TextFieldIconButton(
- semanticsLabel:
- "Clear Button. Clears The Memo Field Input.",
+ semanticsLabel: "Clear Button. Clears The Memo Field Input.",
key: const Key(
"sendViewClearMemoFieldButtonKey",
),
@@ -1941,8 +1933,7 @@ class _SendViewState extends ConsumerState<SendView> {
child: const XIcon(),
)
: TextFieldIconButton(
- semanticsLabel:
- "Paste Button. Pastes From Clipboard To Memo Field Input.",
+ semanticsLabel: "Paste Button. Pastes From Clipboard To Memo Field Input.",
key: const Key(
"sendViewPasteMemoFieldButtonKey",
),
@@ -2089,9 +2080,9 @@ class _SendViewState extends ConsumerState<SendView> {
horizontal: 12,
),
child: RawMaterialButton(
- splashColor: Theme.of(
- context,
- ).extension<StackColors>()!.highlight,
+ splashColor: Theme.of(context)
+ .extension<StackColors>()!
+ .highlight,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
@@ -2215,9 +2206,9 @@ class _SendViewState extends ConsumerState<SendView> {
autocorrect: Util.isDesktop ? false : true,
enableSuggestions: Util.isDesktop ? false : true,
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
key: const Key(
"amountInputFieldCryptoTextFieldKey",
@@ -2255,9 +2246,8 @@ class _SendViewState extends ConsumerState<SendView> {
right: 12,
),
hintText: "0",
- hintStyle: STextStyles.fieldLabel(
- context,
- ).copyWith(fontSize: 14),
+ hintStyle: STextStyles.fieldLabel(context)
+ .copyWith(fontSize: 14),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
child: Padding(
@@ -2286,9 +2276,9 @@ class _SendViewState extends ConsumerState<SendView> {
? false
: true,
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
key: const Key(
"amountInputFieldFiatTextFieldKey",
@@ -2324,9 +2314,8 @@ class _SendViewState extends ConsumerState<SendView> {
right: 12,
),
hintText: "0",
- hintStyle: STextStyles.fieldLabel(
- context,
- ).copyWith(fontSize: 14),
+ hintStyle: STextStyles.fieldLabel(context)
+ .copyWith(fontSize: 14),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
child: Padding(
@@ -2393,19 +2382,18 @@ class _SendViewState extends ConsumerState<SendView> {
}
final result =
- await Navigator.of(
- context,
- ).pushNamed(
- CoinControlView.routeName,
- arguments: Tuple4(
- walletId,
- CoinControlViewType.use,
- amount,
- selectedUTXOs
- .map((e) => e.utxo)
- .toSet(),
- ),
- );
+ await Navigator.of(context)
+ .pushNamed(
+ CoinControlView.routeName,
+ arguments: Tuple4(
+ walletId,
+ CoinControlViewType.use,
+ amount,
+ selectedUTXOs
+ .map((e) => e.utxo)
+ .toSet(),
+ ),
+ );
if (result is Set<UTXO>) {
setState(() {
@@ -2571,9 +2559,9 @@ class _SendViewState extends ConsumerState<SendView> {
horizontal: 12,
),
child: RawMaterialButton(
- splashColor: Theme.of(
- context,
- ).extension<StackColors>()!.highlight,
+ splashColor: Theme.of(context)
+ .extension<StackColors>()!
+ .highlight,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
@@ -2761,9 +2749,9 @@ class _SendViewState extends ConsumerState<SendView> {
"bridge transaction.",
textAlign: TextAlign.left,
style: STextStyles.label(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textError,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textError,
),
),
),
diff --git a/lib/pages/send_view/sol_token_send_view.dart b/lib/pages/send_view/sol_token_send_view.dart
index 4bfca58..13c66ff 100644
--- a/lib/pages/send_view/sol_token_send_view.dart
+++ b/lib/pages/send_view/sol_token_send_view.dart
@@ -445,9 +445,9 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
child: Text(
"Ok",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
onPressed: () {
@@ -563,9 +563,9 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
child: Text(
"Ok",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
onPressed: () {
@@ -688,9 +688,9 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
if (tokenWallet == null) {
return Background(
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
leading: AppBarBackButton(
onPressed: () async {
@@ -748,9 +748,9 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
children: [
Container(
decoration: BoxDecoration(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.popupBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .popupBG,
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
@@ -775,9 +775,8 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
),
Text(
"Available balance",
- style: STextStyles.label(
- context,
- ).copyWith(fontSize: 10),
+ style: STextStyles.label(context)
+ .copyWith(fontSize: 10),
),
],
),
@@ -1016,8 +1015,7 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
children: [
memoController.text.isNotEmpty
? TextFieldIconButton(
- semanticsLabel:
- "Clear Button. Clears The Memo Field Input.",
+ semanticsLabel: "Clear Button. Clears The Memo Field Input.",
key: const Key(
"sendSolTokenViewClearMemoFieldButtonKey",
),
@@ -1029,8 +1027,7 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
child: const XIcon(),
)
: TextFieldIconButton(
- semanticsLabel:
- "Paste Button. Pastes From Clipboard To Memo Field Input.",
+ semanticsLabel: "Paste Button. Pastes From Clipboard To Memo Field Input.",
key: const Key(
"sendSolTokenViewPasteMemoFieldButtonKey",
),
@@ -1081,9 +1078,9 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
autocorrect: Util.isDesktop ? false : true,
enableSuggestions: Util.isDesktop ? false : true,
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
key: const Key(
"solAmountInputFieldCryptoTextFieldKey",
@@ -1111,9 +1108,8 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
right: 12,
),
hintText: "0",
- hintStyle: STextStyles.fieldLabel(
- context,
- ).copyWith(fontSize: 14),
+ hintStyle: STextStyles.fieldLabel(context)
+ .copyWith(fontSize: 14),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
child: Padding(
@@ -1140,9 +1136,9 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
? false
: true,
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
key: const Key(
"solAmountInputFieldFiatTextFieldKey",
@@ -1170,9 +1166,8 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
right: 12,
),
hintText: "0",
- hintStyle: STextStyles.fieldLabel(
- context,
- ).copyWith(fontSize: 14),
+ hintStyle: STextStyles.fieldLabel(context)
+ .copyWith(fontSize: 14),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
child: Padding(
@@ -1268,9 +1263,9 @@ class _SolTokenSendViewState extends ConsumerState<SolTokenSendView> {
horizontal: 12,
),
child: RawMaterialButton(
- splashColor: Theme.of(
- context,
- ).extension<StackColors>()!.highlight,
+ splashColor: Theme.of(context)
+ .extension<StackColors>()!
+ .highlight,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
diff --git a/lib/pages/send_view/token_send_view.dart b/lib/pages/send_view/token_send_view.dart
index 5d25e24..5601d41 100644
--- a/lib/pages/send_view/token_send_view.dart
+++ b/lib/pages/send_view/token_send_view.dart
@@ -558,9 +558,9 @@ class _TokenSendViewState extends ConsumerState<TokenSendView> {
child: Text(
"Ok",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
onPressed: () {
@@ -714,9 +714,9 @@ class _TokenSendViewState extends ConsumerState<TokenSendView> {
children: [
Container(
decoration: BoxDecoration(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.popupBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .popupBG,
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
@@ -743,9 +743,8 @@ class _TokenSendViewState extends ConsumerState<TokenSendView> {
),
Text(
"Available balance",
- style: STextStyles.label(
- context,
- ).copyWith(fontSize: 10),
+ style: STextStyles.label(context)
+ .copyWith(fontSize: 10),
),
],
),
@@ -992,9 +991,9 @@ class _TokenSendViewState extends ConsumerState<TokenSendView> {
autocorrect: Util.isDesktop ? false : true,
enableSuggestions: Util.isDesktop ? false : true,
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
key: const Key(
"amountInputFieldCryptoTextFieldKey",
@@ -1029,9 +1028,8 @@ class _TokenSendViewState extends ConsumerState<TokenSendView> {
right: 12,
),
hintText: "0",
- hintStyle: STextStyles.fieldLabel(
- context,
- ).copyWith(fontSize: 14),
+ hintStyle: STextStyles.fieldLabel(context)
+ .copyWith(fontSize: 14),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
child: Padding(
@@ -1060,9 +1058,9 @@ class _TokenSendViewState extends ConsumerState<TokenSendView> {
? false
: true,
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
key: const Key(
"amountInputFieldFiatTextFieldKey",
@@ -1097,9 +1095,8 @@ class _TokenSendViewState extends ConsumerState<TokenSendView> {
right: 12,
),
hintText: "0",
- hintStyle: STextStyles.fieldLabel(
- context,
- ).copyWith(fontSize: 14),
+ hintStyle: STextStyles.fieldLabel(context)
+ .copyWith(fontSize: 14),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
child: Padding(
@@ -1195,9 +1192,9 @@ class _TokenSendViewState extends ConsumerState<TokenSendView> {
horizontal: 12,
),
child: RawMaterialButton(
- splashColor: Theme.of(
- context,
- ).extension<StackColors>()!.highlight,
+ splashColor: Theme.of(context)
+ .extension<StackColors>()!
+ .highlight,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
diff --git a/lib/pages/settings_views/global_settings_view/manage_nodes_views/add_edit_node_view.dart b/lib/pages/settings_views/global_settings_view/manage_nodes_views/add_edit_node_view.dart
index 7cbbcf2..c727146 100644
--- a/lib/pages/settings_views/global_settings_view/manage_nodes_views/add_edit_node_view.dart
+++ b/lib/pages/settings_views/global_settings_view/manage_nodes_views/add_edit_node_view.dart
@@ -47,6 +47,7 @@ import '../../../../widgets/icon_widgets/x_icon.dart';
import '../../../../widgets/stack_dialog.dart';
import '../../../../widgets/stack_text_field.dart';
import '../../../../widgets/textfield_icon_button.dart';
+
// import 'package:web3dart/web3dart.dart';
enum AddEditNodeViewType { add, edit }
@@ -191,9 +192,9 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
child: Text(
"Cancel",
style: STextStyles.button(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
@@ -267,9 +268,8 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
.save(node, formData.password, true);
await _notifyWalletsOfUpdatedNode();
if (mounted) {
- Navigator.of(
- context,
- ).popUntil(ModalRoute.withName(widget.routeOnSuccessOrDelete));
+ Navigator.of(context)
+ .popUntil(ModalRoute.withName(widget.routeOnSuccessOrDelete));
}
break;
case AddEditNodeViewType.edit:
@@ -297,9 +297,8 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
.save(node, formData.password, true);
await _notifyWalletsOfUpdatedNode();
if (mounted) {
- Navigator.of(
- context,
- ).popUntil(ModalRoute.withName(widget.routeOnSuccessOrDelete));
+ Navigator.of(context)
+ .popUntil(ModalRoute.withName(widget.routeOnSuccessOrDelete));
}
break;
}
@@ -474,9 +473,9 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
condition: !isDesktop,
builder: (child) => Background(
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
leading: AppBarBackButton(
onPressed: () async {
@@ -495,8 +494,7 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
),
actions: [
if (viewType == AddEditNodeViewType.add &&
- coin
- is CryptonoteCurrency) // TODO: [prio=low] do something other than `coin is CryptonoteCurrency` in the future
+ coin is CryptonoteCurrency) // TODO: [prio=low] do something other than `coin is CryptonoteCurrency` in the future
Padding(
padding: const EdgeInsets.only(
top: 10,
@@ -509,15 +507,15 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
key: const Key("qrNodeAppBarButtonKey"),
size: 36,
shadows: const [],
- color: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
icon: QrCodeIcon(
width: 20,
height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
onPressed: _scanQr,
),
@@ -544,14 +542,14 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
key: const Key("deleteNodeAppBarButtonKey"),
size: 36,
shadows: const [],
- color: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
icon: SvgPicture.asset(
Assets.svg.trash,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
width: 20,
height: 20,
),
@@ -619,19 +617,18 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
),
],
),
- if (coin
- is CryptonoteCurrency) // TODO: [prio=low] do something other than `coin is CryptonoteCurrency` in the future
+ if (coin is CryptonoteCurrency) // TODO: [prio=low] do something other than `coin is CryptonoteCurrency` in the future
Padding(
padding: const EdgeInsets.only(right: 32),
child: AppBarIconButton(
size: 40,
color: isDesktop
- ? Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG
- : Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ ? Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG
+ : Theme.of(context)
+ .extension<StackColors>()!
+ .background,
icon: const QrCodeIcon(width: 21, height: 21),
onPressed: _scanQr,
),
@@ -1540,9 +1537,9 @@ class _NodeFormState extends ConsumerState<NodeForm> {
fillColor: !widget.readOnly
? null
: MaterialStateProperty.all(
- Theme.of(
- context,
- ).extension<StackColors>()!.checkboxBGDisabled,
+ Theme.of(context)
+ .extension<StackColors>()!
+ .checkboxBGDisabled,
),
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
value: _forceNoTor,
@@ -1608,9 +1605,9 @@ class RadioTextButton<T> extends StatelessWidget {
width: 20,
height: 20,
child: Radio<T>(
- activeColor: Theme.of(
- context,
- ).extension<StackColors>()!.radioButtonIconEnabled,
+ activeColor: Theme.of(context)
+ .extension<StackColors>()!
+ .radioButtonIconEnabled,
value: value,
groupValue: groupValue,
onChanged: !enabled
diff --git a/lib/pages/settings_views/global_settings_view/stack_backup_views/create_auto_backup_view.dart b/lib/pages/settings_views/global_settings_view/stack_backup_views/create_auto_backup_view.dart
index 5c1be8d..50ae265 100644
--- a/lib/pages/settings_views/global_settings_view/stack_backup_views/create_auto_backup_view.dart
+++ b/lib/pages/settings_views/global_settings_view/stack_backup_views/create_auto_backup_view.dart
@@ -158,9 +158,8 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
passwordController.text = "";
passwordRepeatController.text = "";
- Navigator.of(
- context,
- ).popUntil(ModalRoute.withName(AutoBackupView.routeName));
+ Navigator.of(context)
+ .popUntil(ModalRoute.withName(AutoBackupView.routeName));
}
} else {
await showDialog<dynamic>(
@@ -289,9 +288,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
const SizedBox(width: 16),
SvgPicture.asset(
Assets.svg.folder,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark3,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark3,
width: 16,
height: 16,
),
@@ -432,9 +431,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
MediaQuery.of(context).size.width - 32 - 24,
height: 5,
fillColor: passwordStrength < 0.51
- ? Theme.of(
- context,
- ).extension<StackColors>()!.accentColorRed
+ ? Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorRed
: passwordStrength < 1
? Theme.of(context)
.extension<StackColors>()!
@@ -442,9 +441,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
: Theme.of(context)
.extension<StackColors>()!
.accentColorGreen,
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.buttonBackSecondary,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonBackSecondary,
percent: passwordStrength < 0.25
? 0.03
: passwordStrength,
@@ -522,9 +521,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
),
Positioned.fill(
child: RawMaterialButton(
- splashColor: Theme.of(
- context,
- ).extension<StackColors>()!.highlight,
+ splashColor: Theme.of(context)
+ .extension<StackColors>()!
+ .highlight,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
diff --git a/lib/pages/shopinbit/shopinbit_payment_shared.dart b/lib/pages/shopinbit/shopinbit_payment_shared.dart
index 4552e56..db5172c 100644
--- a/lib/pages/shopinbit/shopinbit_payment_shared.dart
+++ b/lib/pages/shopinbit/shopinbit_payment_shared.dart
@@ -293,9 +293,9 @@ class ShopInBitPaymentMobileScaffold extends StatelessWidget {
}
},
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
leading: AppBarBackButton(onPressed: onBack),
title: Text("ShopinBit", style: STextStyles.navBarTitle(context)),
diff --git a/lib/pages/wallet_view/transaction_views/transaction_search_filter_view.dart b/lib/pages/wallet_view/transaction_views/transaction_search_filter_view.dart
index 28ce036..95823ab 100644
--- a/lib/pages/wallet_view/transaction_views/transaction_search_filter_view.dart
+++ b/lib/pages/wallet_view/transaction_views/transaction_search_filter_view.dart
@@ -131,13 +131,13 @@ class _TransactionSearchViewState
} else {
return Background(
child: Scaffold(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
appBar: AppBar(
- backgroundColor: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
leading: AppBarBackButton(
onPressed: () async {
if (FocusScope.of(context).hasFocus) {
@@ -451,9 +451,9 @@ class _TransactionSearchViewState
],
style: isDesktop
? STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
height: 1.8,
)
: STextStyles.field(context),
@@ -520,9 +520,9 @@ class _TransactionSearchViewState
focusNode: keywordTextFieldFocusNode,
style: isDesktop
? STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
height: 1.8,
)
: STextStyles.field(context),
diff --git a/lib/pages_desktop_specific/coin_control/desktop_coin_control_use_dialog.dart b/lib/pages_desktop_specific/coin_control/desktop_coin_control_use_dialog.dart
index 255c334..a2f2647 100644
--- a/lib/pages_desktop_specific/coin_control/desktop_coin_control_use_dialog.dart
+++ b/lib/pages_desktop_specific/coin_control/desktop_coin_control_use_dialog.dart
@@ -168,9 +168,9 @@ class _DesktopCoinControlUseDialogState
children: [
RoundedContainer(
color: Colors.transparent,
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
@@ -349,12 +349,12 @@ class _DesktopCoinControlUseDialogState
final _controller = RotateIconController();
return Expandable2(
- border: Theme.of(
- context,
- ).extension<StackColors>()!.backgroundAppBar,
- background: Theme.of(
- context,
- ).extension<StackColors>()!.popupBG,
+ border: Theme.of(context)
+ .extension<StackColors>()!
+ .backgroundAppBar,
+ background: Theme.of(context)
+ .extension<StackColors>()!
+ .popupBG,
animationDurationMultiplier:
0.2 * entry.value.length,
onExpandWillChange: (state) {
@@ -446,9 +446,9 @@ class _DesktopCoinControlUseDialogState
),
const SizedBox(height: 16),
RoundedContainer(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
padding: EdgeInsets.zero,
child: ConditionalParent(
condition: widget.amountToSend != null,
@@ -459,9 +459,9 @@ class _DesktopCoinControlUseDialogState
child,
Container(
height: 1.2,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.popupBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .popupBG,
),
Padding(
padding: const EdgeInsets.all(16),
@@ -475,9 +475,9 @@ class _DesktopCoinControlUseDialogState
STextStyles.desktopTextExtraExtraSmall(
context,
).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
),
SelectableText(
@@ -487,9 +487,9 @@ class _DesktopCoinControlUseDialogState
STextStyles.desktopTextExtraExtraSmall(
context,
).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
),
],
@@ -509,9 +509,9 @@ class _DesktopCoinControlUseDialogState
STextStyles.desktopTextExtraExtraSmall(
context,
).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
),
SelectableText(
@@ -521,9 +521,9 @@ class _DesktopCoinControlUseDialogState
context,
).copyWith(
color: widget.amountToSend == null
- ? Theme.of(
- context,
- ).extension<StackColors>()!.textDark
+ ? Theme.of(context)
+ .extension<StackColors>()!
+ .textDark
: selectedSum < widget.amountToSend!
? Theme.of(context)
.extension<StackColors>()!
diff --git a/lib/pages_desktop_specific/coin_control/desktop_coin_control_view.dart b/lib/pages_desktop_specific/coin_control/desktop_coin_control_view.dart
index 06c10a3..4cc7691 100644
--- a/lib/pages_desktop_specific/coin_control/desktop_coin_control_view.dart
+++ b/lib/pages_desktop_specific/coin_control/desktop_coin_control_view.dart
@@ -121,17 +121,17 @@ class _DesktopCoinControlViewState
const SizedBox(width: 32),
AppBarIconButton(
size: 32,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
shadows: const [],
icon: SvgPicture.asset(
Assets.svg.arrowLeft,
width: 18,
height: 18,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.topNavIconPrimary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .topNavIconPrimary,
),
onPressed: Navigator.of(context).pop,
),
@@ -140,9 +140,9 @@ class _DesktopCoinControlViewState
Assets.svg.coinControl.gamePad,
width: 32,
height: 32,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textSubtitle1,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textSubtitle1,
),
const SizedBox(width: 12),
Text("Coin control", style: STextStyles.desktopH3(context)),
@@ -175,9 +175,9 @@ class _DesktopCoinControlViewState
},
style: STextStyles.desktopTextExtraSmall(context)
.copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
),
decoration:
@@ -320,12 +320,12 @@ class _DesktopCoinControlViewState
final _controller = RotateIconController();
return Expandable2(
- border: Theme.of(
- context,
- ).extension<StackColors>()!.backgroundAppBar,
- background: Theme.of(
- context,
- ).extension<StackColors>()!.popupBG,
+ border: Theme.of(context)
+ .extension<StackColors>()!
+ .backgroundAppBar,
+ background: Theme.of(context)
+ .extension<StackColors>()!
+ .popupBG,
animationDurationMultiplier: 0.2 * entry.value.length,
onExpandWillChange: (state) {
if (state == Expandable2State.expanded) {
@@ -367,9 +367,9 @@ class _DesktopCoinControlViewState
icon: SvgPicture.asset(
Assets.svg.chevronDown,
width: 14,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textSubtitle1,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textSubtitle1,
),
curve: Curves.easeInOut,
controller: _controller,
diff --git a/lib/pages_desktop_specific/desktop_exchange/desktop_all_trades_view.dart b/lib/pages_desktop_specific/desktop_exchange/desktop_all_trades_view.dart
index 19985a9..f6675ef 100644
--- a/lib/pages_desktop_specific/desktop_exchange/desktop_all_trades_view.dart
+++ b/lib/pages_desktop_specific/desktop_exchange/desktop_all_trades_view.dart
@@ -112,17 +112,17 @@ class _DesktopAllTradesViewState extends ConsumerState<DesktopAllTradesView> {
const SizedBox(width: 32),
AppBarIconButton(
size: 32,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
shadows: const [],
icon: SvgPicture.asset(
Assets.svg.arrowLeft,
width: 18,
height: 18,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.topNavIconPrimary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .topNavIconPrimary,
),
onPressed: Navigator.of(context).pop,
),
@@ -155,9 +155,9 @@ class _DesktopAllTradesViewState extends ConsumerState<DesktopAllTradesView> {
},
style: STextStyles.desktopTextExtraSmall(context)
.copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
),
decoration:
@@ -243,9 +243,9 @@ class _DesktopAllTradesViewState extends ConsumerState<DesktopAllTradesView> {
primary: false,
separatorBuilder: (context, _) => Container(
height: 1,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
),
itemCount: month.item2.length,
itemBuilder: (context, index) => Padding(
@@ -529,9 +529,9 @@ class _DesktopTradeRowCardState extends ConsumerState<DesktopTradeRowCard> {
"→ ${trade.payOutCurrency.toUpperCase()}",
style: STextStyles.desktopTextExtraExtraSmall(context)
.copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
),
),
@@ -550,9 +550,9 @@ class _DesktopTradeRowCardState extends ConsumerState<DesktopTradeRowCard> {
"-${Decimal.tryParse(trade.payInAmount)?.toStringAsFixed(8) ?? "..."} ${trade.payInCurrency.toUpperCase()}",
style: STextStyles.desktopTextExtraExtraSmall(context)
.copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
),
),
@@ -567,9 +567,9 @@ class _DesktopTradeRowCardState extends ConsumerState<DesktopTradeRowCard> {
Assets.svg.circleInfo,
width: 20,
height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textSubtitle2,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textSubtitle2,
),
],
),
diff --git a/lib/pages_desktop_specific/desktop_exchange/exchange_steps/step_scaffold.dart b/lib/pages_desktop_specific/desktop_exchange/exchange_steps/step_scaffold.dart
index a0c7594..0cf8770 100644
--- a/lib/pages_desktop_specific/desktop_exchange/exchange_steps/step_scaffold.dart
+++ b/lib/pages_desktop_specific/desktop_exchange/exchange_steps/step_scaffold.dart
@@ -80,9 +80,10 @@ class _StepScaffoldState extends ConsumerState<StepScaffold> {
builder: (_) => WillPopScope(
onWillPop: () async => false,
child: Container(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.overlay.withOpacity(0.6),
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .overlay
+ .withOpacity(0.6),
child: const CustomLoadingOverlay(
message: "Creating a trade",
eventBus: null,
diff --git a/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_2.dart b/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_2.dart
index 41e4da8..15c0e49 100644
--- a/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_2.dart
+++ b/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_2.dart
@@ -344,9 +344,9 @@ class _DesktopStep2State extends ConsumerState<DesktopStep2> {
Text(
"Recipient Wallet",
style: STextStyles.desktopTextExtraExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
),
if (AppConfig.isStackCoin(
@@ -484,9 +484,9 @@ class _DesktopStep2State extends ConsumerState<DesktopStep2> {
Text(
"Memo or destination tag",
style: STextStyles.desktopTextExtraExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
),
if (_showRecipientMemo) const SizedBox(height: 10),
@@ -531,9 +531,9 @@ class _DesktopStep2State extends ConsumerState<DesktopStep2> {
Text(
"Refund Wallet (required)",
style: STextStyles.desktopTextExtraExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
),
if (AppConfig.isStackCoin(
@@ -676,9 +676,9 @@ class _DesktopStep2State extends ConsumerState<DesktopStep2> {
Text(
"Refund memo or destination tag",
style: STextStyles.desktopTextExtraExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
),
if (doesRefundAddress && _showRefundMemo) const SizedBox(height: 10),
diff --git a/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_4.dart b/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_4.dart
index 12cad5e..f8f85c2 100644
--- a/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_4.dart
+++ b/lib/pages_desktop_specific/desktop_exchange/exchange_steps/subwidgets/desktop_step_4.dart
@@ -111,9 +111,9 @@ class _DesktopStep4State extends ConsumerState<DesktopStep4> {
text:
"You must send at least ${ref.watch(desktopExchangeModelProvider.select((value) => value!.payInAmount))} ${ref.watch(desktopExchangeModelProvider.select((value) => value!.sendTicker))}. ",
style: STextStyles.label700(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.warningForeground,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .warningForeground,
fontSize: 14,
),
children: [
@@ -121,9 +121,9 @@ class _DesktopStep4State extends ConsumerState<DesktopStep4> {
text:
"If you send less than ${ref.watch(desktopExchangeModelProvider.select((value) => value!.payInAmount))} ${ref.watch(desktopExchangeModelProvider.select((value) => value!.sendTicker))}, your transaction may not be converted and it may not be refunded.",
style: STextStyles.label(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.warningForeground,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .warningForeground,
fontSize: 14,
),
),
diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart
index 259ff8e..09d2e67 100644
--- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart
+++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart
@@ -276,9 +276,8 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
child: Text(
'Failed to create slatepack: $e',
textAlign: TextAlign.left,
- style: STextStyles.desktopTextExtraExtraSmall(
- context,
- ).copyWith(fontSize: 18),
+ style: STextStyles.desktopTextExtraExtraSmall(context)
+ .copyWith(fontSize: 18),
),
),
const SizedBox(height: 40),
@@ -401,9 +400,8 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
child: Text(
'Failed to create slate: $e',
textAlign: TextAlign.left,
- style: STextStyles.desktopTextExtraExtraSmall(
- context,
- ).copyWith(fontSize: 18),
+ style: STextStyles.desktopTextExtraExtraSmall(context)
+ .copyWith(fontSize: 18),
),
),
const SizedBox(height: 40),
@@ -505,9 +503,8 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
child: Text(
"You are about to send your entire balance. Would you like to continue?",
textAlign: TextAlign.left,
- style: STextStyles.desktopTextExtraExtraSmall(
- context,
- ).copyWith(fontSize: 18),
+ style: STextStyles.desktopTextExtraExtraSmall(context)
+ .copyWith(fontSize: 18),
),
),
const SizedBox(height: 40),
@@ -821,9 +818,8 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
child: Text(
e.toString(),
textAlign: TextAlign.left,
- style: STextStyles.desktopTextExtraExtraSmall(
- context,
- ).copyWith(fontSize: 18),
+ style: STextStyles.desktopTextExtraExtraSmall(context)
+ .copyWith(fontSize: 18),
),
),
const SizedBox(height: 40),
@@ -1440,23 +1436,22 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
child: Container(
decoration: BoxDecoration(
color:
- Theme.of(
- context,
- ).extension<StackColors>()?.textFieldDefaultBG ??
+ Theme.of(context)
+ .extension<StackColors>()
+ ?.textFieldDefaultBG ??
Colors.white, // Fallback color
borderRadius: BorderRadius.circular(8),
border: Border.all(
color:
- Theme.of(
- context,
- ).extension<StackColors>()?.backgroundAppBar ??
+ Theme.of(context)
+ .extension<StackColors>()
+ ?.backgroundAppBar ??
Colors.grey, // Fallback color
width: 1,
),
),
child: const SizedBox(
- height:
- 60, // Provide an explicit height to avoid infinite constraints
+ height: 60, // Provide an explicit height to avoid infinite constraints
child: MwcTxsMethodToggle(),
),
),
@@ -1468,23 +1463,22 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
child: Container(
decoration: BoxDecoration(
color:
- Theme.of(
- context,
- ).extension<StackColors>()?.textFieldDefaultBG ??
+ Theme.of(context)
+ .extension<StackColors>()
+ ?.textFieldDefaultBG ??
Colors.white, // Fallback color
borderRadius: BorderRadius.circular(8),
border: Border.all(
color:
- Theme.of(
- context,
- ).extension<StackColors>()?.backgroundAppBar ??
+ Theme.of(context)
+ .extension<StackColors>()
+ ?.backgroundAppBar ??
Colors.grey, // Fallback color
width: 1,
),
),
child: const SizedBox(
- height:
- 60, // Provide an explicit height to avoid infinite constraints
+ height: 60, // Provide an explicit height to avoid infinite constraints
child: EpicTxsMethodToggle(),
),
),
@@ -1494,9 +1488,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
Text(
"Send from",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -1577,9 +1571,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
offset: const Offset(0, -10),
elevation: 0,
decoration: BoxDecoration(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
@@ -1604,9 +1598,8 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
controller: sendToController,
enabled: false,
readOnly: true,
- style: STextStyles.desktopTextFieldLabel(
- context,
- ).copyWith(fontSize: 16),
+ style: STextStyles.desktopTextFieldLabel(context)
+ .copyWith(fontSize: 16),
decoration: const InputDecoration(
contentPadding: EdgeInsets.symmetric(
vertical: 18,
@@ -1621,9 +1614,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
Text(
"Amount",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -1677,9 +1670,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
),
hintText: "0",
hintStyle: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
@@ -1688,9 +1681,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
child: Text(
ref.watch(pAmountUnit(coin)).unitForCoin(coin),
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
@@ -1737,9 +1730,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
),
hintText: "0",
hintStyle: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
@@ -1752,9 +1745,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
),
),
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
@@ -1765,9 +1758,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
if (showCoinControl)
RoundedContainer(
color: Colors.transparent,
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
@@ -1791,9 +1784,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
Text(
"Send to",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -1858,9 +1851,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
},
focusNode: _addressFocusNode,
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
),
decoration:
@@ -1974,8 +1967,7 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
),
if (sendToController.text.isEmpty)
TextFieldIconButton(
- semanticsLabel:
- "Scan QR Button. Opens Camera For Scanning QR Code.",
+ semanticsLabel: "Scan QR Button. Opens Camera For Scanning QR Code.",
key: const Key("sendViewScanQrButtonKey"),
onTap: scanWebcam,
child: const QrCodeIcon(),
@@ -2031,9 +2023,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
error,
textAlign: TextAlign.left,
style: STextStyles.label(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textError,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textError,
),
),
),
@@ -2062,9 +2054,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
"(${opData.length ~/ 2} bytes)",
textAlign: TextAlign.left,
style: STextStyles.label(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorGreen,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorGreen,
),
),
),
@@ -2092,9 +2084,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
"to complete the bridge transaction.",
textAlign: TextAlign.left,
style: STextStyles.label(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textError,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textError,
),
),
),
@@ -2122,9 +2114,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
setState(() {});
},
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
),
decoration:
@@ -2185,9 +2177,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
Text(
"Nonce",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -2209,9 +2201,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
focusNode: _nonceFocusNode,
onChanged: (_) => setState(() {}),
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
),
decoration:
diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send_fee_form.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send_fee_form.dart
index b17725b..cc57cc2 100644
--- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send_fee_form.dart
+++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send_fee_form.dart
@@ -156,9 +156,9 @@ class _DesktopSendFeeFormState extends ConsumerState<DesktopSendFeeForm> {
"Transaction fee"
"${isCustomFee ? "" : " (${isEth ? "max" : "estimated"})"}",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -326,9 +326,9 @@ class _DesktopSendFeeFormState extends ConsumerState<DesktopSendFeeForm> {
feeSelectionResult?.$2 ?? "",
style: STextStyles.desktopTextExtraExtraSmall(context)
.copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
),
textAlign: TextAlign.left,
),
diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_sol_token_send.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_sol_token_send.dart
index 67c4fff..9c84751 100644
--- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_sol_token_send.dart
+++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_sol_token_send.dart
@@ -181,9 +181,8 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
"You are about to send your entire balance. "
"Would you like to continue?",
textAlign: TextAlign.left,
- style: STextStyles.desktopTextExtraExtraSmall(
- context,
- ).copyWith(fontSize: 18),
+ style: STextStyles.desktopTextExtraExtraSmall(context)
+ .copyWith(fontSize: 18),
),
),
const SizedBox(height: 40),
@@ -343,9 +342,8 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
child: SelectableText(
e.toString(),
textAlign: TextAlign.left,
- style: STextStyles.desktopTextExtraExtraSmall(
- context,
- ).copyWith(fontSize: 18),
+ style: STextStyles.desktopTextExtraExtraSmall(context)
+ .copyWith(fontSize: 18),
),
),
const SizedBox(height: 40),
@@ -722,9 +720,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
Text(
"Send from",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -734,9 +732,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
Text(
"Amount",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -793,9 +791,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
),
hintText: "0",
hintStyle: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
@@ -804,9 +802,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
child: Text(
tokenWallet.tokenSymbol,
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
@@ -862,9 +860,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
),
hintText: "0",
hintStyle: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
@@ -877,9 +875,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
),
),
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
@@ -890,9 +888,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
Text(
"Send to",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -929,9 +927,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
},
focusNode: _addressFocusNode,
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
),
decoration:
@@ -1068,9 +1066,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
error,
textAlign: TextAlign.left,
style: STextStyles.label(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textError,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textError,
),
),
),
@@ -1097,9 +1095,9 @@ class _DesktopSolTokenSendState extends ConsumerState<DesktopSolTokenSend> {
setState(() {});
},
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
),
decoration:
diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_token_send.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_token_send.dart
index 4fe3f5b..9388a22 100644
--- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_token_send.dart
+++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_token_send.dart
@@ -163,9 +163,8 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
child: Text(
"You are about to send your entire balance. Would you like to continue?",
textAlign: TextAlign.left,
- style: STextStyles.desktopTextExtraExtraSmall(
- context,
- ).copyWith(fontSize: 18),
+ style: STextStyles.desktopTextExtraExtraSmall(context)
+ .copyWith(fontSize: 18),
),
),
const SizedBox(height: 40),
@@ -322,9 +321,8 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
child: SelectableText(
e.toString(),
textAlign: TextAlign.left,
- style: STextStyles.desktopTextExtraExtraSmall(
- context,
- ).copyWith(fontSize: 18),
+ style: STextStyles.desktopTextExtraExtraSmall(context)
+ .copyWith(fontSize: 18),
),
),
const SizedBox(height: 40),
@@ -720,9 +718,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
Text(
"Send from",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -732,9 +730,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
Text(
"Amount",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -791,9 +789,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
),
hintText: "0",
hintStyle: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
@@ -802,9 +800,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
child: Text(
ref.watch(pAmountUnit(coin)).unitForContract(tokenContract),
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
@@ -860,9 +858,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
),
hintText: "0",
hintStyle: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultText,
),
prefixIcon: FittedBox(
fit: BoxFit.scaleDown,
@@ -875,9 +873,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
),
),
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.accentColorDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorDark,
),
),
),
@@ -888,9 +886,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
Text(
"Send to",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -927,9 +925,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
},
focusNode: _addressFocusNode,
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
),
decoration:
@@ -1066,9 +1064,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
error,
textAlign: TextAlign.left,
style: STextStyles.label(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textError,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textError,
),
),
),
@@ -1092,9 +1090,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
Text(
"Nonce",
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveSearchIconRight,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveSearchIconRight,
),
textAlign: TextAlign.left,
),
@@ -1115,9 +1113,9 @@ class _DesktopTokenSendState extends ConsumerState<DesktopTokenSend> {
focusNode: _nonceFocusNode,
onChanged: (_) => setState(() {}),
style: STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
),
decoration:
diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/wallet_keys_desktop_popup.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/wallet_keys_desktop_popup.dart
index 95b2855..e23312a 100644
--- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/wallet_keys_desktop_popup.dart
+++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/wallet_keys_desktop_popup.dart
@@ -95,9 +95,9 @@ class WalletKeysDesktopPopup extends ConsumerWidget {
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 32),
child: RoundedWhiteContainer(
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 9,
@@ -131,9 +131,9 @@ class WalletKeysDesktopPopup extends ConsumerWidget {
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 32),
child: RoundedWhiteContainer(
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 9,
@@ -169,9 +169,9 @@ class WalletKeysDesktopPopup extends ConsumerWidget {
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 32),
child: RoundedWhiteContainer(
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 9,
@@ -208,9 +208,9 @@ class WalletKeysDesktopPopup extends ConsumerWidget {
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 32),
child: RoundedWhiteContainer(
- borderColor: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ borderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 9,
@@ -314,9 +314,9 @@ class _Mnemonic extends StatelessWidget {
child: MnemonicTable(
words: words,
isDesktop: true,
- itemBorderColor: Theme.of(
- context,
- ).extension<StackColors>()!.buttonBackSecondary,
+ itemBorderColor: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonBackSecondary,
),
),
const SizedBox(height: 24),
diff --git a/lib/services/exchange/nanswap/nanswap_exchange.dart b/lib/services/exchange/nanswap/nanswap_exchange.dart
index 6ef4873..a2f14b3 100644
--- a/lib/services/exchange/nanswap/nanswap_exchange.dart
+++ b/lib/services/exchange/nanswap/nanswap_exchange.dart
@@ -15,8 +15,9 @@ import 'api_response_models/n_estimate.dart';
import 'api_response_models/n_trade.dart';
import 'nanswap_api.dart';
-typedef NanswapOrderLookup =
- Future<ExchangeResponse<NTrade>> Function({required String id});
+typedef NanswapOrderLookup = Future<ExchangeResponse<NTrade>> Function({
+ required String id,
+});
class NanswapExchange extends Exchange {
NanswapExchange._({NanswapOrderLookup? getOrder})
diff --git a/lib/services/wallets.dart b/lib/services/wallets.dart
index 73ca76a..5a7cf05 100644
--- a/lib/services/wallets.dart
+++ b/lib/services/wallets.dart
@@ -588,9 +588,8 @@ class Wallets {
);
} else if (walletInitFutures.isNotEmpty) {
unawaited(
- Future.wait(
- walletInitFutures,
- ).then((value) => _refreshFutures(idsToRefresh)),
+ Future.wait(walletInitFutures)
+ .then((value) => _refreshFutures(idsToRefresh)),
);
} else if (walletsToInitLinearly.isNotEmpty) {
unawaited(_initLinearly(walletsToInitLinearly));
diff --git a/lib/utilities/amount/amount_field_relocalization.dart b/lib/utilities/amount/amount_field_relocalization.dart
index 2e9634e..c74e367 100644
--- a/lib/utilities/amount/amount_field_relocalization.dart
+++ b/lib/utilities/amount/amount_field_relocalization.dart
@@ -4,11 +4,10 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../providers/global/locale_provider.dart';
import 'amount.dart';
-typedef ProviderListen<T> =
- void Function(
- ProviderListenable<T> provider,
- void Function(T? previous, T next) listener,
- );
+typedef ProviderListen<T> = void Function(
+ ProviderListenable<T> provider,
+ void Function(T? previous, T next) listener,
+);
/// Rewrites a controller's decimal separator while preserving its selection.
void relocalizeAmountController(
diff --git a/lib/wallets/crypto_currency/coins/peercoin.dart b/lib/wallets/crypto_currency/coins/peercoin.dart
index a3241e2..1c2f826 100644
--- a/lib/wallets/crypto_currency/coins/peercoin.dart
+++ b/lib/wallets/crypto_currency/coins/peercoin.dart
@@ -64,8 +64,7 @@ class Peercoin extends Bip39HDCurrency with ElectrumXCurrencyInterface {
String coinType;
switch (networkParams.wifPrefix) {
case 183: // PPC mainnet wif.
- coinType =
- "6"; // according to https://github.com/satoshilabs/slips/blob/master/slip-0044.md
+ coinType = "6"; // according to https://github.com/satoshilabs/slips/blob/master/slip-0044.md
break;
case 239: // PPC testnet wif.
coinType = "1";
diff --git a/lib/wallets/wallet/impl/epiccash_wallet.dart b/lib/wallets/wallet/impl/epiccash_wallet.dart
index 3e5af8a..5a3ae57 100644
--- a/lib/wallets/wallet/impl/epiccash_wallet.dart
+++ b/lib/wallets/wallet/impl/epiccash_wallet.dart
@@ -498,9 +498,9 @@ class EpiccashWallet extends Bip39Wallet {
int realFee = 0;
try {
- realFee = (Decimal.parse(
- transactionFees.fee.toString(),
- )).toBigInt().toInt();
+ realFee = (Decimal.parse(transactionFees.fee.toString()))
+ .toBigInt()
+ .toInt();
} catch (e, s) {
//todo: come back to this
Logging.instance.e("Error getting fees", error: e, stackTrace: s);
diff --git a/lib/wallets/wallet/impl/mimblewimblecoin_wallet.dart b/lib/wallets/wallet/impl/mimblewimblecoin_wallet.dart
index 6a65be7..721773d 100644
--- a/lib/wallets/wallet/impl/mimblewimblecoin_wallet.dart
+++ b/lib/wallets/wallet/impl/mimblewimblecoin_wallet.dart
@@ -626,9 +626,9 @@ class MimblewimblecoinWallet extends Bip39Wallet {
int realFee = 0;
try {
- realFee = (Decimal.parse(
- transactionFees.fee.toString(),
- )).toBigInt().toInt();
+ realFee = (Decimal.parse(transactionFees.fee.toString()))
+ .toBigInt()
+ .toInt();
} catch (e, s) {
//todo: come back to this
debugPrint("$e $s");
@@ -1372,8 +1372,7 @@ class MimblewimblecoinWallet extends Bip39Wallet {
}
output = output.copyWith(
addresses: [
- myAddressesSet
- .first, // Must be changed if we ever do more than a single wallet address!!!
+ myAddressesSet.first, // Must be changed if we ever do more than a single wallet address!!!
],
walletOwns: true,
);
diff --git a/lib/wallets/wallet/impl/xelis_wallet.dart b/lib/wallets/wallet/impl/xelis_wallet.dart
index fa5579b..544519f 100644
--- a/lib/wallets/wallet/impl/xelis_wallet.dart
+++ b/lib/wallets/wallet/impl/xelis_wallet.dart
@@ -740,8 +740,7 @@ class XelisWallet extends LibXelisWallet {
? recipients
: [
TxRecipient(
- address:
- 'xel:xz9574c80c4xegnvurazpmxhw5dlg2n0g9qm60uwgt75uqyx3pcsqzzra9m',
+ address: 'xel:xz9574c80c4xegnvurazpmxhw5dlg2n0g9qm60uwgt75uqyx3pcsqzzra9m',
amount: amount,
isChange: false,
addressType: AddressType.xelis,
diff --git a/lib/wallets/wallet/wallet_mixin_interfaces/mweb_interface.dart b/lib/wallets/wallet/wallet_mixin_interfaces/mweb_interface.dart
index f0542bd..8729d02 100644
--- a/lib/wallets/wallet/wallet_mixin_interfaces/mweb_interface.dart
+++ b/lib/wallets/wallet/wallet_mixin_interfaces/mweb_interface.dart
@@ -999,9 +999,8 @@ mixin MwebInterface<T extends ElectrumXCurrencyInterface>
(utxo) => processedTx.inputs.any(
(input) =>
input.prevOut.hash.toHex ==
- Uint8List.fromList(
- utxo.id.toUint8ListFromHex.reversed.toList(),
- ).toHex,
+ Uint8List.fromList(utxo.id.toUint8ListFromHex.reversed.toList())
+ .toHex,
),
)
.toList();
diff --git a/lib/wallets/wallet/wallet_mixin_interfaces/nano_interface.dart b/lib/wallets/wallet/wallet_mixin_interfaces/nano_interface.dart
index 1b12d1e..fb367a2 100644
--- a/lib/wallets/wallet/wallet_mixin_interfaces/nano_interface.dart
+++ b/lib/wallets/wallet/wallet_mixin_interfaces/nano_interface.dart
@@ -349,9 +349,8 @@ mixin NanoInterface<T extends NanoCurrency> on Bip39Wallet<T> {
@override
Future<void> updateNode() async {
_cachedNode =
- NodeService(
- secureStorageInterface: secureStorageInterface,
- ).getPrimaryNodeFor(currency: info.coin) ??
+ NodeService(secureStorageInterface: secureStorageInterface)
+ .getPrimaryNodeFor(currency: info.coin) ??
info.coin.defaultNode(isPrimary: true);
unawaited(refresh());
@@ -360,9 +359,8 @@ mixin NanoInterface<T extends NanoCurrency> on Bip39Wallet<T> {
@override
NodeModel getCurrentNode() {
return _cachedNode ??
- NodeService(
- secureStorageInterface: secureStorageInterface,
- ).getPrimaryNodeFor(currency: info.coin) ??
+ NodeService(secureStorageInterface: secureStorageInterface)
+ .getPrimaryNodeFor(currency: info.coin) ??
info.coin.defaultNode(isPrimary: true);
}
diff --git a/lib/widgets/dialogs/frost/frost_step_qr_dialog.dart b/lib/widgets/dialogs/frost/frost_step_qr_dialog.dart
index 81f3400..be2b76a 100644
--- a/lib/widgets/dialogs/frost/frost_step_qr_dialog.dart
+++ b/lib/widgets/dialogs/frost/frost_step_qr_dialog.dart
@@ -125,18 +125,18 @@ class _FrostStepQrDialogState extends State<FrostStepQrDialog> {
Text(
widget.myName,
style: STextStyles.w600_16(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.customTextButtonEnabledText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .customTextButtonEnabledText,
),
),
const SizedBox(height: 8),
Text(widget.title, style: STextStyles.w600_12(context)),
const SizedBox(height: 8),
RoundedContainer(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldDefaultBG,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldDefaultBG,
radiusMultiplier: 1,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
@@ -183,9 +183,9 @@ class _FrostStepQrDialogState extends State<FrostStepQrDialog> {
Assets.svg.share,
width: 14,
height: 14,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.buttonTextSecondary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonTextSecondary,
),
onPressed: () async {
await _capturePng(false);
diff --git a/lib/widgets/eth_fee_form.dart b/lib/widgets/eth_fee_form.dart
index eba41b3..ef0ecae 100644
--- a/lib/widgets/eth_fee_form.dart
+++ b/lib/widgets/eth_fee_form.dart
@@ -257,9 +257,9 @@ class _EthFeeFormState extends State<EthFeeForm> {
Widget build(BuildContext context) {
final fieldStyle = Util.isDesktop
? STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textFieldActiveText,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
height: 1.8,
)
: STextStyles.field(context);
diff --git a/lib/widgets/textfields/exchange_textfield.dart b/lib/widgets/textfields/exchange_textfield.dart
index 15853cd..3229b28 100644
--- a/lib/widgets/textfields/exchange_textfield.dart
+++ b/lib/widgets/textfields/exchange_textfield.dart
@@ -126,9 +126,8 @@ class _ExchangeTextFieldState extends ConsumerState<ExchangeTextField> {
decoration: InputDecoration(
contentPadding: const EdgeInsets.only(top: 12, left: 12),
hintText: widget.currency == null ? "select currency" : "0",
- hintStyle: STextStyles.fieldLabel(
- context,
- ).copyWith(fontSize: 14),
+ hintStyle: STextStyles.fieldLabel(context)
+ .copyWith(fontSize: 14),
),
inputFormatters: [
AmountInputFormatter(
@@ -226,9 +225,9 @@ class _ExchangeTextFieldState extends ConsumerState<ExchangeTextField> {
Text(
widget.currency?.ticker.toUpperCase() ?? "n/a",
style: STextStyles.smallMed14(context).copyWith(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
),
if (!widget.isWalletCoin) const SizedBox(width: 6),
@@ -237,9 +236,9 @@ class _ExchangeTextFieldState extends ConsumerState<ExchangeTextField> {
Assets.svg.chevronDown,
width: 5,
height: 2.5,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textDark,
),
],
),
diff --git a/test/cached_electrumx_test.mocks.dart b/test/cached_electrumx_test.mocks.dart
index 1fd47df..4d7104c 100644
--- a/test/cached_electrumx_test.mocks.dart
+++ b/test/cached_electrumx_test.mocks.dart
@@ -73,31 +73,25 @@ class MockElectrumXClient extends _i1.Mock implements _i6.ElectrumXClient {
}
@override
- _i2.CryptoCurrency get cryptoCurrency =>
- (super.noSuchMethod(
- Invocation.getter(#cryptoCurrency),
- returnValue: _FakeCryptoCurrency_0(
- this,
- Invocation.getter(#cryptoCurrency),
- ),
- )
- as _i2.CryptoCurrency);
+ _i2.CryptoCurrency get cryptoCurrency => (super.noSuchMethod(
+ Invocation.getter(#cryptoCurrency),
+ returnValue: _FakeCryptoCurrency_0(
+ this,
+ Invocation.getter(#cryptoCurrency),
+ ),
+ ) as _i2.CryptoCurrency);
@override
- _i7.TorPlainNetworkOption get netType =>
- (super.noSuchMethod(
- Invocation.getter(#netType),
- returnValue: _i7.TorPlainNetworkOption.tor,
- )
- as _i7.TorPlainNetworkOption);
+ _i7.TorPlainNetworkOption get netType => (super.noSuchMethod(
+ Invocation.getter(#netType),
+ returnValue: _i7.TorPlainNetworkOption.tor,
+ ) as _i7.TorPlainNetworkOption);
@override
- String get host =>
- (super.noSuchMethod(
- Invocation.getter(#host),
- returnValue: _i8.dummyValue<String>(this, Invocation.getter(#host)),
- )
- as String);
+ String get host => (super.noSuchMethod(
+ Invocation.getter(#host),
+ returnValue: _i8.dummyValue<String>(this, Invocation.getter(#host)),
+ ) as String);
@override
int get port =>
@@ -109,23 +103,20 @@ class MockElectrumXClient extends _i1.Mock implements _i6.ElectrumXClient {
as bool);
@override
- int get currentFailoverIndex =>
- (super.noSuchMethod(
- Invocation.getter(#currentFailoverIndex),
- returnValue: 0,
- )
- as int);
+ int get currentFailoverIndex => (super.noSuchMethod(
+ Invocation.getter(#currentFailoverIndex),
+ returnValue: 0,
+ ) as int);
@override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
- Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
- returnValue: _FakeDuration_1(
- this,
- Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
- ),
- )
- as Duration);
+ Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
+ returnValue: _FakeDuration_1(
+ this,
+ Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
+ ),
+ ) as Duration);
@override
set currentFailoverIndex(int? value) => super.noSuchMethod(
@@ -134,22 +125,18 @@ class MockElectrumXClient extends _i1.Mock implements _i6.ElectrumXClient {
);
@override
- _i9.Future<void> closeAdapter() =>
- (super.noSuchMethod(
- Invocation.method(#closeAdapter, []),
- returnValue: _i9.Future<void>.value(),
- returnValueForMissingStub: _i9.Future<void>.value(),
- )
- as _i9.Future<void>);
+ _i9.Future<void> closeAdapter() => (super.noSuchMethod(
+ Invocation.method(#closeAdapter, []),
+ returnValue: _i9.Future<void>.value(),
+ returnValueForMissingStub: _i9.Future<void>.value(),
+ ) as _i9.Future<void>);
@override
- _i9.Future<void> checkElectrumAdapter() =>
- (super.noSuchMethod(
- Invocation.method(#checkElectrumAdapter, []),
- returnValue: _i9.Future<void>.value(),
- returnValueForMissingStub: _i9.Future<void>.value(),
- )
- as _i9.Future<void>);
+ _i9.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
+ Invocation.method(#checkElectrumAdapter, []),
+ returnValue: _i9.Future<void>.value(),
+ returnValueForMissingStub: _i9.Future<void>.value(),
+ ) as _i9.Future<void>);
@override
_i9.Future<dynamic> request({
@@ -158,18 +145,16 @@ class MockElectrumXClient extends _i1.Mock implements _i6.ElectrumXClient {
String? requestID,
int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
- }) =>
- (super.noSuchMethod(
- Invocation.method(#request, [], {
- #command: command,
- #args: args,
- #requestID: requestID,
- #retries: retries,
- #requestTimeout: requestTimeout,
- }),
- returnValue: _i9.Future<dynamic>.value(),
- )
- as _i9.Future<dynamic>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#request, [], {
+ #command: command,
+ #args: args,
+ #requestID: requestID,
+ #retries: retries,
+ #requestTimeout: requestTimeout,
+ }),
+ returnValue: _i9.Future<dynamic>.value(),
+ ) as _i9.Future<dynamic>);
@override
_i9.Future<List<dynamic>> batchRequest({
@@ -177,372 +162,316 @@ class MockElectrumXClient extends _i1.Mock implements _i6.ElectrumXClient {
required List<dynamic>? args,
Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#batchRequest, [], {
- #command: command,
- #args: args,
- #requestTimeout: requestTimeout,
- #retries: retries,
- }),
- returnValue: _i9.Future<List<dynamic>>.value(<dynamic>[]),
- )
- as _i9.Future<List<dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#batchRequest, [], {
+ #command: command,
+ #args: args,
+ #requestTimeout: requestTimeout,
+ #retries: retries,
+ }),
+ returnValue: _i9.Future<List<dynamic>>.value(<dynamic>[]),
+ ) as _i9.Future<List<dynamic>>);
@override
_i9.Future<bool> ping({
String? requestID,
int? retryCount = 1,
Duration? timeout = const Duration(seconds: 30),
- }) =>
- (super.noSuchMethod(
- Invocation.method(#ping, [], {
- #requestID: requestID,
- #retryCount: retryCount,
- #timeout: timeout,
- }),
- returnValue: _i9.Future<bool>.value(false),
- )
- as _i9.Future<bool>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#ping, [], {
+ #requestID: requestID,
+ #retryCount: retryCount,
+ #timeout: timeout,
+ }),
+ returnValue: _i9.Future<bool>.value(false),
+ ) as _i9.Future<bool>);
@override
_i9.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
(super.noSuchMethod(
- Invocation.method(#getBlockHeadTip, [], {#requestID: requestID}),
- returnValue: _i9.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i9.Future<Map<String, dynamic>>);
+ Invocation.method(#getBlockHeadTip, [], {#requestID: requestID}),
+ returnValue: _i9.Future<Map<String, dynamic>>.value(
+ <String, dynamic>{},
+ ),
+ ) as _i9.Future<Map<String, dynamic>>);
@override
_i9.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
(super.noSuchMethod(
- Invocation.method(#getServerFeatures, [], {#requestID: requestID}),
- returnValue: _i9.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i9.Future<Map<String, dynamic>>);
+ Invocation.method(#getServerFeatures, [], {#requestID: requestID}),
+ returnValue: _i9.Future<Map<String, dynamic>>.value(
+ <String, dynamic>{},
+ ),
+ ) as _i9.Future<Map<String, dynamic>>);
@override
_i9.Future<String> broadcastTransaction({
required String? rawTx,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#broadcastTransaction, [], {
- #rawTx: rawTx,
- #requestID: requestID,
- }),
- returnValue: _i9.Future<String>.value(
- _i8.dummyValue<String>(
- this,
- Invocation.method(#broadcastTransaction, [], {
- #rawTx: rawTx,
- #requestID: requestID,
- }),
- ),
- ),
- )
- as _i9.Future<String>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#broadcastTransaction, [], {
+ #rawTx: rawTx,
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<String>.value(
+ _i8.dummyValue<String>(
+ this,
+ Invocation.method(#broadcastTransaction, [], {
+ #rawTx: rawTx,
+ #requestID: requestID,
+ }),
+ ),
+ ),
+ ) as _i9.Future<String>);
@override
_i9.Future<Map<String, dynamic>> getBalance({
required String? scripthash,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getBalance, [], {
- #scripthash: scripthash,
- #requestID: requestID,
- }),
- returnValue: _i9.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i9.Future<Map<String, dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getBalance, [], {
+ #scripthash: scripthash,
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
+ ) as _i9.Future<Map<String, dynamic>>);
@override
_i9.Future<List<Map<String, dynamic>>> getHistory({
required String? scripthash,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getHistory, [], {
- #scripthash: scripthash,
- #requestID: requestID,
- }),
- returnValue: _i9.Future<List<Map<String, dynamic>>>.value(
- <Map<String, dynamic>>[],
- ),
- )
- as _i9.Future<List<Map<String, dynamic>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getHistory, [], {
+ #scripthash: scripthash,
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<List<Map<String, dynamic>>>.value(
+ <Map<String, dynamic>>[],
+ ),
+ ) as _i9.Future<List<Map<String, dynamic>>>);
@override
_i9.Future<List<List<Map<String, dynamic>>>> getBatchHistory({
required List<dynamic>? args,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getBatchHistory, [], {#args: args}),
- returnValue: _i9.Future<List<List<Map<String, dynamic>>>>.value(
- <List<Map<String, dynamic>>>[],
- ),
- )
- as _i9.Future<List<List<Map<String, dynamic>>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getBatchHistory, [], {#args: args}),
+ returnValue: _i9.Future<List<List<Map<String, dynamic>>>>.value(
+ <List<Map<String, dynamic>>>[],
+ ),
+ ) as _i9.Future<List<List<Map<String, dynamic>>>>);
@override
_i9.Future<List<Map<String, dynamic>>> getUTXOs({
required String? scripthash,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getUTXOs, [], {
- #scripthash: scripthash,
- #requestID: requestID,
- }),
- returnValue: _i9.Future<List<Map<String, dynamic>>>.value(
- <Map<String, dynamic>>[],
- ),
- )
- as _i9.Future<List<Map<String, dynamic>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getUTXOs, [], {
+ #scripthash: scripthash,
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<List<Map<String, dynamic>>>.value(
+ <Map<String, dynamic>>[],
+ ),
+ ) as _i9.Future<List<Map<String, dynamic>>>);
@override
_i9.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs({
required List<dynamic>? args,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getBatchUTXOs, [], {#args: args}),
- returnValue: _i9.Future<List<List<Map<String, dynamic>>>>.value(
- <List<Map<String, dynamic>>>[],
- ),
- )
- as _i9.Future<List<List<Map<String, dynamic>>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getBatchUTXOs, [], {#args: args}),
+ returnValue: _i9.Future<List<List<Map<String, dynamic>>>>.value(
+ <List<Map<String, dynamic>>>[],
+ ),
+ ) as _i9.Future<List<List<Map<String, dynamic>>>>);
@override
_i9.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
bool? verbose = true,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getTransaction, [], {
- #txHash: txHash,
- #verbose: verbose,
- #requestID: requestID,
- }),
- returnValue: _i9.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i9.Future<Map<String, dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getTransaction, [], {
+ #txHash: txHash,
+ #verbose: verbose,
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
+ ) as _i9.Future<Map<String, dynamic>>);
@override
_i9.Future<List<Map<String, dynamic>>> getBatchTransactions({
required List<String>? txHashes,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getBatchTransactions, [], {
- #txHashes: txHashes,
- #requestID: requestID,
- }),
- returnValue: _i9.Future<List<Map<String, dynamic>>>.value(
- <Map<String, dynamic>>[],
- ),
- )
- as _i9.Future<List<Map<String, dynamic>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getBatchTransactions, [], {
+ #txHashes: txHashes,
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<List<Map<String, dynamic>>>.value(
+ <Map<String, dynamic>>[],
+ ),
+ ) as _i9.Future<List<Map<String, dynamic>>>);
@override
_i9.Future<Map<String, dynamic>> getLelantusAnonymitySet({
String? groupId = '1',
String? blockhash = '',
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getLelantusAnonymitySet, [], {
- #groupId: groupId,
- #blockhash: blockhash,
- #requestID: requestID,
- }),
- returnValue: _i9.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i9.Future<Map<String, dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getLelantusAnonymitySet, [], {
+ #groupId: groupId,
+ #blockhash: blockhash,
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
+ ) as _i9.Future<Map<String, dynamic>>);
@override
_i9.Future<dynamic> getLelantusMintData({dynamic mints, String? requestID}) =>
(super.noSuchMethod(
- Invocation.method(#getLelantusMintData, [], {
- #mints: mints,
- #requestID: requestID,
- }),
- returnValue: _i9.Future<dynamic>.value(),
- )
- as _i9.Future<dynamic>);
+ Invocation.method(#getLelantusMintData, [], {
+ #mints: mints,
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<dynamic>.value(),
+ ) as _i9.Future<dynamic>);
@override
_i9.Future<Map<String, dynamic>> getLelantusUsedCoinSerials({
String? requestID,
required int? startNumber,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getLelantusUsedCoinSerials, [], {
- #requestID: requestID,
- #startNumber: startNumber,
- }),
- returnValue: _i9.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i9.Future<Map<String, dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getLelantusUsedCoinSerials, [], {
+ #requestID: requestID,
+ #startNumber: startNumber,
+ }),
+ returnValue: _i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
+ ) as _i9.Future<Map<String, dynamic>>);
@override
_i9.Future<int> getLelantusLatestCoinId({String? requestID}) =>
(super.noSuchMethod(
- Invocation.method(#getLelantusLatestCoinId, [], {
- #requestID: requestID,
- }),
- returnValue: _i9.Future<int>.value(0),
- )
- as _i9.Future<int>);
+ Invocation.method(#getLelantusLatestCoinId, [], {
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<int>.value(0),
+ ) as _i9.Future<int>);
@override
_i9.Future<Map<String, dynamic>> getSparkAnonymitySet({
String? coinGroupId = '1',
String? startBlockHash = '',
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getSparkAnonymitySet, [], {
- #coinGroupId: coinGroupId,
- #startBlockHash: startBlockHash,
- #requestID: requestID,
- }),
- returnValue: _i9.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i9.Future<Map<String, dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getSparkAnonymitySet, [], {
+ #coinGroupId: coinGroupId,
+ #startBlockHash: startBlockHash,
+ #requestID: requestID,
+ }),
+ returnValue: _i9.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
+ ) as _i9.Future<Map<String, dynamic>>);
@override
_i9.Future<int> getSparkLatestCoinId({String? requestID}) =>
(super.noSuchMethod(
- Invocation.method(#getSparkLatestCoinId, [], {
- #requestID: requestID,
- }),
- returnValue: _i9.Future<int>.value(0),
- )
- as _i9.Future<int>);
+ Invocation.method(#getSparkLatestCoinId, [], {#requestID: requestID}),
+ returnValue: _i9.Future<int>.value(0),
+ ) as _i9.Future<int>);
@override
_i9.Future<Set<String>> getMempoolTxids({String? requestID}) =>
(super.noSuchMethod(
- Invocation.method(#getMempoolTxids, [], {#requestID: requestID}),
- returnValue: _i9.Future<Set<String>>.value(<String>{}),
- )
- as _i9.Future<Set<String>>);
+ Invocation.method(#getMempoolTxids, [], {#requestID: requestID}),
+ returnValue: _i9.Future<Set<String>>.value(<String>{}),
+ ) as _i9.Future<Set<String>>);
@override
_i9.Future<List<_i3.SparkMempoolData>> getMempoolSparkData({
String? requestID,
required List<String>? txids,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getMempoolSparkData, [], {
- #requestID: requestID,
- #txids: txids,
- }),
- returnValue: _i9.Future<List<_i3.SparkMempoolData>>.value(
- <_i3.SparkMempoolData>[],
- ),
- )
- as _i9.Future<List<_i3.SparkMempoolData>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getMempoolSparkData, [], {
+ #requestID: requestID,
+ #txids: txids,
+ }),
+ returnValue: _i9.Future<List<_i3.SparkMempoolData>>.value(
+ <_i3.SparkMempoolData>[],
+ ),
+ ) as _i9.Future<List<_i3.SparkMempoolData>>);
@override
_i9.Future<List<List<dynamic>>> getSparkUnhashedUsedCoinsTagsWithTxHashes({
String? requestID,
required int? startNumber,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getSparkUnhashedUsedCoinsTagsWithTxHashes, [], {
- #requestID: requestID,
- #startNumber: startNumber,
- }),
- returnValue: _i9.Future<List<List<dynamic>>>.value(
- <List<dynamic>>[],
- ),
- )
- as _i9.Future<List<List<dynamic>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getSparkUnhashedUsedCoinsTagsWithTxHashes, [], {
+ #requestID: requestID,
+ #startNumber: startNumber,
+ }),
+ returnValue: _i9.Future<List<List<dynamic>>>.value(<List<dynamic>>[]),
+ ) as _i9.Future<List<List<dynamic>>>);
@override
_i9.Future<List<({String address, String name})>> getSparkNames({
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getSparkNames, [], {#requestID: requestID}),
- returnValue:
- _i9.Future<List<({String address, String name})>>.value(
- <({String address, String name})>[],
- ),
- )
- as _i9.Future<List<({String address, String name})>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getSparkNames, [], {#requestID: requestID}),
+ returnValue: _i9.Future<List<({String address, String name})>>.value(
+ <({String address, String name})>[],
+ ),
+ ) as _i9.Future<List<({String address, String name})>>);
@override
_i9.Future<({String additionalInfo, String address, int validUntil})>
- getSparkNameData({required String? sparkName, String? requestID}) =>
- (super.noSuchMethod(
+ getSparkNameData({
+ required String? sparkName,
+ String? requestID,
+ }) => (super.noSuchMethod(
+ Invocation.method(#getSparkNameData, [], {
+ #sparkName: sparkName,
+ #requestID: requestID,
+ }),
+ returnValue:
+ _i9.Future<
+ ({String additionalInfo, String address, int validUntil})
+ >.value((
+ additionalInfo: _i8.dummyValue<String>(
+ this,
+ Invocation.method(#getSparkNameData, [], {
+ #sparkName: sparkName,
+ #requestID: requestID,
+ }),
+ ),
+ address: _i8.dummyValue<String>(
+ this,
Invocation.method(#getSparkNameData, [], {
#sparkName: sparkName,
#requestID: requestID,
}),
- returnValue:
- _i9.Future<
- ({String additionalInfo, String address, int validUntil})
- >.value((
- additionalInfo: _i8.dummyValue<String>(
- this,
- Invocation.method(#getSparkNameData, [], {
- #sparkName: sparkName,
- #requestID: requestID,
- }),
- ),
- address: _i8.dummyValue<String>(
- this,
- Invocation.method(#getSparkNameData, [], {
- #sparkName: sparkName,
- #requestID: requestID,
- }),
- ),
- validUntil: 0,
- )),
- )
- as _i9.Future<
- ({String additionalInfo, String address, int validUntil})
- >);
+ ),
+ validUntil: 0,
+ )),
+ ) as _i9.Future<({String additionalInfo, String address, int validUntil})>);
@override
_i9.Future<_i3.SparkAnonymitySetMeta> getSparkAnonymitySetMeta({
String? requestID,
required int? coinGroupId,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getSparkAnonymitySetMeta, [], {
- #requestID: requestID,
- #coinGroupId: coinGroupId,
- }),
- returnValue: _i9.Future<_i3.SparkAnonymitySetMeta>.value(
- _FakeSparkAnonymitySetMeta_2(
- this,
- Invocation.method(#getSparkAnonymitySetMeta, [], {
- #requestID: requestID,
- #coinGroupId: coinGroupId,
- }),
- ),
- ),
- )
- as _i9.Future<_i3.SparkAnonymitySetMeta>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getSparkAnonymitySetMeta, [], {
+ #requestID: requestID,
+ #coinGroupId: coinGroupId,
+ }),
+ returnValue: _i9.Future<_i3.SparkAnonymitySetMeta>.value(
+ _FakeSparkAnonymitySetMeta_2(
+ this,
+ Invocation.method(#getSparkAnonymitySetMeta, [], {
+ #requestID: requestID,
+ #coinGroupId: coinGroupId,
+ }),
+ ),
+ ),
+ ) as _i9.Future<_i3.SparkAnonymitySetMeta>);
@override
_i9.Future<List<dynamic>> getSparkAnonymitySetBySector({
@@ -551,79 +480,70 @@ class MockElectrumXClient extends _i1.Mock implements _i6.ElectrumXClient {
required String? latestBlock,
required int? startIndex,
required int? endIndex,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getSparkAnonymitySetBySector, [], {
- #requestID: requestID,
- #coinGroupId: coinGroupId,
- #latestBlock: latestBlock,
- #startIndex: startIndex,
- #endIndex: endIndex,
- }),
- returnValue: _i9.Future<List<dynamic>>.value(<dynamic>[]),
- )
- as _i9.Future<List<dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getSparkAnonymitySetBySector, [], {
+ #requestID: requestID,
+ #coinGroupId: coinGroupId,
+ #latestBlock: latestBlock,
+ #startIndex: startIndex,
+ #endIndex: endIndex,
+ }),
+ returnValue: _i9.Future<List<dynamic>>.value(<dynamic>[]),
+ ) as _i9.Future<List<dynamic>>);
@override
_i9.Future<bool> isMasterNodeCollateral({
String? requestID,
required String? txid,
required int? index,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#isMasterNodeCollateral, [], {
- #requestID: requestID,
- #txid: txid,
- #index: index,
- }),
- returnValue: _i9.Future<bool>.value(false),
- )
- as _i9.Future<bool>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#isMasterNodeCollateral, [], {
+ #requestID: requestID,
+ #txid: txid,
+ #index: index,
+ }),
+ returnValue: _i9.Future<bool>.value(false),
+ ) as _i9.Future<bool>);
@override
_i9.Future<Map<String, dynamic>> getFeeRate({String? requestID}) =>
(super.noSuchMethod(
- Invocation.method(#getFeeRate, [], {#requestID: requestID}),
- returnValue: _i9.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i9.Future<Map<String, dynamic>>);
+ Invocation.method(#getFeeRate, [], {#requestID: requestID}),
+ returnValue: _i9.Future<Map<String, dynamic>>.value(
+ <String, dynamic>{},
+ ),
+ ) as _i9.Future<Map<String, dynamic>>);
@override
_i9.Future<_i4.Decimal> estimateFee({
String? requestID,
required int? blocks,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#estimateFee, [], {
- #requestID: requestID,
- #blocks: blocks,
- }),
- returnValue: _i9.Future<_i4.Decimal>.value(
- _FakeDecimal_3(
- this,
- Invocation.method(#estimateFee, [], {
- #requestID: requestID,
- #blocks: blocks,
- }),
- ),
- ),
- )
- as _i9.Future<_i4.Decimal>);
-
- @override
- _i9.Future<_i4.Decimal> relayFee({String? requestID}) =>
- (super.noSuchMethod(
- Invocation.method(#relayFee, [], {#requestID: requestID}),
- returnValue: _i9.Future<_i4.Decimal>.value(
- _FakeDecimal_3(
- this,
- Invocation.method(#relayFee, [], {#requestID: requestID}),
- ),
- ),
- )
- as _i9.Future<_i4.Decimal>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#estimateFee, [], {
+ #requestID: requestID,
+ #blocks: blocks,
+ }),
+ returnValue: _i9.Future<_i4.Decimal>.value(
+ _FakeDecimal_3(
+ this,
+ Invocation.method(#estimateFee, [], {
+ #requestID: requestID,
+ #blocks: blocks,
+ }),
+ ),
+ ),
+ ) as _i9.Future<_i4.Decimal>);
+
+ @override
+ _i9.Future<_i4.Decimal> relayFee({String? requestID}) => (super.noSuchMethod(
+ Invocation.method(#relayFee, [], {#requestID: requestID}),
+ returnValue: _i9.Future<_i4.Decimal>.value(
+ _FakeDecimal_3(
+ this,
+ Invocation.method(#relayFee, [], {#requestID: requestID}),
+ ),
+ ),
+ ) as _i9.Future<_i4.Decimal>);
}
/// A class which mocks [Prefs].
@@ -640,12 +560,10 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as bool);
@override
- int get lastUnlockedTimeout =>
- (super.noSuchMethod(
- Invocation.getter(#lastUnlockedTimeout),
- returnValue: 0,
- )
- as int);
+ int get lastUnlockedTimeout => (super.noSuchMethod(
+ Invocation.getter(#lastUnlockedTimeout),
+ returnValue: 0,
+ ) as int);
@override
int get lastUnlocked =>
@@ -653,28 +571,22 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as int);
@override
- int get currentNotificationId =>
- (super.noSuchMethod(
- Invocation.getter(#currentNotificationId),
- returnValue: 0,
- )
- as int);
+ int get currentNotificationId => (super.noSuchMethod(
+ Invocation.getter(#currentNotificationId),
+ returnValue: 0,
+ ) as int);
@override
- List<String> get walletIdsSyncOnStartup =>
- (super.noSuchMethod(
- Invocation.getter(#walletIdsSyncOnStartup),
- returnValue: <String>[],
- )
- as List<String>);
+ List<String> get walletIdsSyncOnStartup => (super.noSuchMethod(
+ Invocation.getter(#walletIdsSyncOnStartup),
+ returnValue: <String>[],
+ ) as List<String>);
@override
- _i11.SyncingType get syncType =>
- (super.noSuchMethod(
- Invocation.getter(#syncType),
- returnValue: _i11.SyncingType.currentWalletOnly,
- )
- as _i11.SyncingType);
+ _i11.SyncingType get syncType => (super.noSuchMethod(
+ Invocation.getter(#syncType),
+ returnValue: _i11.SyncingType.currentWalletOnly,
+ ) as _i11.SyncingType);
@override
bool get wifiOnly =>
@@ -682,34 +594,22 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as bool);
@override
- bool get showFavoriteWallets =>
- (super.noSuchMethod(
- Invocation.getter(#showFavoriteWallets),
- returnValue: false,
- )
- as bool);
+ bool get showFavoriteWallets => (super.noSuchMethod(
+ Invocation.getter(#showFavoriteWallets),
+ returnValue: false,
+ ) as bool);
@override
- String get language =>
- (super.noSuchMethod(
- Invocation.getter(#language),
- returnValue: _i8.dummyValue<String>(
- this,
- Invocation.getter(#language),
- ),
- )
- as String);
+ String get language => (super.noSuchMethod(
+ Invocation.getter(#language),
+ returnValue: _i8.dummyValue<String>(this, Invocation.getter(#language)),
+ ) as String);
@override
- String get currency =>
- (super.noSuchMethod(
- Invocation.getter(#currency),
- returnValue: _i8.dummyValue<String>(
- this,
- Invocation.getter(#currency),
- ),
- )
- as String);
+ String get currency => (super.noSuchMethod(
+ Invocation.getter(#currency),
+ returnValue: _i8.dummyValue<String>(this, Invocation.getter(#currency)),
+ ) as String);
@override
bool get randomizePIN =>
@@ -732,12 +632,10 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as bool);
@override
- bool get biometricsDuress =>
- (super.noSuchMethod(
- Invocation.getter(#biometricsDuress),
- returnValue: false,
- )
- as bool);
+ bool get biometricsDuress => (super.noSuchMethod(
+ Invocation.getter(#biometricsDuress),
+ returnValue: false,
+ ) as bool);
@override
int get familiarity =>
@@ -750,44 +648,34 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as bool);
@override
- bool get showTestNetCoins =>
- (super.noSuchMethod(
- Invocation.getter(#showTestNetCoins),
- returnValue: false,
- )
- as bool);
+ bool get showTestNetCoins => (super.noSuchMethod(
+ Invocation.getter(#showTestNetCoins),
+ returnValue: false,
+ ) as bool);
@override
- bool get isAutoBackupEnabled =>
- (super.noSuchMethod(
- Invocation.getter(#isAutoBackupEnabled),
- returnValue: false,
- )
- as bool);
+ bool get isAutoBackupEnabled => (super.noSuchMethod(
+ Invocation.getter(#isAutoBackupEnabled),
+ returnValue: false,
+ ) as bool);
@override
- _i12.BackupFrequencyType get backupFrequencyType =>
- (super.noSuchMethod(
- Invocation.getter(#backupFrequencyType),
- returnValue: _i12.BackupFrequencyType.everyTenMinutes,
- )
- as _i12.BackupFrequencyType);
+ _i12.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod(
+ Invocation.getter(#backupFrequencyType),
+ returnValue: _i12.BackupFrequencyType.everyTenMinutes,
+ ) as _i12.BackupFrequencyType);
@override
- bool get hideBlockExplorerWarning =>
- (super.noSuchMethod(
- Invocation.getter(#hideBlockExplorerWarning),
- returnValue: false,
- )
- as bool);
+ bool get hideBlockExplorerWarning => (super.noSuchMethod(
+ Invocation.getter(#hideBlockExplorerWarning),
+ returnValue: false,
+ ) as bool);
@override
- bool get gotoWalletOnStartup =>
- (super.noSuchMethod(
- Invocation.getter(#gotoWalletOnStartup),
- returnValue: false,
- )
- as bool);
+ bool get gotoWalletOnStartup => (super.noSuchMethod(
+ Invocation.getter(#gotoWalletOnStartup),
+ returnValue: false,
+ ) as bool);
@override
bool get externalCalls =>
@@ -795,53 +683,40 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as bool);
@override
- bool get enableCoinControl =>
- (super.noSuchMethod(
- Invocation.getter(#enableCoinControl),
- returnValue: false,
- )
- as bool);
+ bool get enableCoinControl => (super.noSuchMethod(
+ Invocation.getter(#enableCoinControl),
+ returnValue: false,
+ ) as bool);
@override
- bool get enableSystemBrightness =>
- (super.noSuchMethod(
- Invocation.getter(#enableSystemBrightness),
- returnValue: false,
- )
- as bool);
+ bool get enableSystemBrightness => (super.noSuchMethod(
+ Invocation.getter(#enableSystemBrightness),
+ returnValue: false,
+ ) as bool);
@override
- String get themeId =>
- (super.noSuchMethod(
- Invocation.getter(#themeId),
- returnValue: _i8.dummyValue<String>(
- this,
- Invocation.getter(#themeId),
- ),
- )
- as String);
+ String get themeId => (super.noSuchMethod(
+ Invocation.getter(#themeId),
+ returnValue: _i8.dummyValue<String>(this, Invocation.getter(#themeId)),
+ ) as String);
@override
- String get systemBrightnessLightThemeId =>
- (super.noSuchMethod(
- Invocation.getter(#systemBrightnessLightThemeId),
- returnValue: _i8.dummyValue<String>(
- this,
- Invocation.getter(#systemBrightnessLightThemeId),
- ),
- )
- as String);
+ String get systemBrightnessLightThemeId => (super.noSuchMethod(
+ Invocation.getter(#systemBrightnessLightThemeId),
+ returnValue: _i8.dummyValue<String>(
+ this,
+ Invocation.getter(#systemBrightnessLightThemeId),
+ ),
+ ) as String);
@override
- String get systemBrightnessDarkThemeId =>
- (super.noSuchMethod(
- Invocation.getter(#systemBrightnessDarkThemeId),
- returnValue: _i8.dummyValue<String>(
- this,
- Invocation.getter(#systemBrightnessDarkThemeId),
- ),
- )
- as String);
+ String get systemBrightnessDarkThemeId => (super.noSuchMethod(
+ Invocation.getter(#systemBrightnessDarkThemeId),
+ returnValue: _i8.dummyValue<String>(
+ this,
+ Invocation.getter(#systemBrightnessDarkThemeId),
+ ),
+ ) as String);
@override
bool get useTor =>
@@ -854,36 +729,28 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as bool);
@override
- bool get enableExchange =>
- (super.noSuchMethod(
- Invocation.getter(#enableExchange),
- returnValue: false,
- )
- as bool);
+ bool get enableExchange => (super.noSuchMethod(
+ Invocation.getter(#enableExchange),
+ returnValue: false,
+ ) as bool);
@override
- bool get advancedFiroFeatures =>
- (super.noSuchMethod(
- Invocation.getter(#advancedFiroFeatures),
- returnValue: false,
- )
- as bool);
+ bool get advancedFiroFeatures => (super.noSuchMethod(
+ Invocation.getter(#advancedFiroFeatures),
+ returnValue: false,
+ ) as bool);
@override
- _i13.Level get logLevel =>
- (super.noSuchMethod(
- Invocation.getter(#logLevel),
- returnValue: _i13.Level.all,
- )
- as _i13.Level);
+ _i13.Level get logLevel => (super.noSuchMethod(
+ Invocation.getter(#logLevel),
+ returnValue: _i13.Level.all,
+ ) as _i13.Level);
@override
- ({bool enabled, int minutes}) get autoLockInfo =>
- (super.noSuchMethod(
- Invocation.getter(#autoLockInfo),
- returnValue: (enabled: false, minutes: 0),
- )
- as ({bool enabled, int minutes}));
+ ({bool enabled, int minutes}) get autoLockInfo => (super.noSuchMethod(
+ Invocation.getter(#autoLockInfo),
+ returnValue: (enabled: false, minutes: 0),
+ ) as ({bool enabled, int minutes}));
@override
bool get privacyScreen =>
@@ -891,12 +758,10 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as bool);
@override
- bool get disableScreenShots =>
- (super.noSuchMethod(
- Invocation.getter(#disableScreenShots),
- returnValue: false,
- )
- as bool);
+ bool get disableScreenShots => (super.noSuchMethod(
+ Invocation.getter(#disableScreenShots),
+ returnValue: false,
+ ) as bool);
@override
set lastUnlockedTimeout(int? lastUnlockedTimeout) => super.noSuchMethod(
@@ -1145,55 +1010,43 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
as bool);
@override
- _i9.Future<void> init() =>
- (super.noSuchMethod(
- Invocation.method(#init, []),
- returnValue: _i9.Future<void>.value(),
- returnValueForMissingStub: _i9.Future<void>.value(),
- )
- as _i9.Future<void>);
+ _i9.Future<void> init() => (super.noSuchMethod(
+ Invocation.method(#init, []),
+ returnValue: _i9.Future<void>.value(),
+ returnValueForMissingStub: _i9.Future<void>.value(),
+ ) as _i9.Future<void>);
@override
- _i9.Future<int> incrementCurrentNotificationIndex() =>
- (super.noSuchMethod(
- Invocation.method(#incrementCurrentNotificationIndex, []),
- returnValue: _i9.Future<int>.value(0),
- )
- as _i9.Future<int>);
+ _i9.Future<int> incrementCurrentNotificationIndex() => (super.noSuchMethod(
+ Invocation.method(#incrementCurrentNotificationIndex, []),
+ returnValue: _i9.Future<int>.value(0),
+ ) as _i9.Future<int>);
@override
- _i9.Future<bool> isExternalCallsSet() =>
- (super.noSuchMethod(
- Invocation.method(#isExternalCallsSet, []),
- returnValue: _i9.Future<bool>.value(false),
- )
- as _i9.Future<bool>);
+ _i9.Future<bool> isExternalCallsSet() => (super.noSuchMethod(
+ Invocation.method(#isExternalCallsSet, []),
+ returnValue: _i9.Future<bool>.value(false),
+ ) as _i9.Future<bool>);
@override
- _i9.Future<void> saveUserID(String? userId) =>
- (super.noSuchMethod(
- Invocation.method(#saveUserID, [userId]),
- returnValue: _i9.Future<void>.value(),
- returnValueForMissingStub: _i9.Future<void>.value(),
- )
- as _i9.Future<void>);
+ _i9.Future<void> saveUserID(String? userId) => (super.noSuchMethod(
+ Invocation.method(#saveUserID, [userId]),
+ returnValue: _i9.Future<void>.value(),
+ returnValueForMissingStub: _i9.Future<void>.value(),
+ ) as _i9.Future<void>);
@override
- _i9.Future<void> saveSignupEpoch(int? signupEpoch) =>
- (super.noSuchMethod(
- Invocation.method(#saveSignupEpoch, [signupEpoch]),
- returnValue: _i9.Future<void>.value(),
- returnValueForMissingStub: _i9.Future<void>.value(),
- )
- as _i9.Future<void>);
+ _i9.Future<void> saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod(
+ Invocation.method(#saveSignupEpoch, [signupEpoch]),
+ returnValue: _i9.Future<void>.value(),
+ returnValueForMissingStub: _i9.Future<void>.value(),
+ ) as _i9.Future<void>);
@override
- _i14.AmountUnit amountUnit(_i2.CryptoCurrency? coin) =>
- (super.noSuchMethod(
- Invocation.method(#amountUnit, [coin]),
- returnValue: _i14.AmountUnit.normal,
- )
- as _i14.AmountUnit);
+ _i14.AmountUnit amountUnit(_i2.CryptoCurrency? coin) => (super.noSuchMethod(
+ Invocation.method(#amountUnit, [coin]),
+ returnValue: _i14.AmountUnit.normal,
+ ) as _i14.AmountUnit);
@override
void updateAmountUnit({
@@ -1208,12 +1061,10 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
);
@override
- int maxDecimals(_i2.CryptoCurrency? coin) =>
- (super.noSuchMethod(
- Invocation.method(#maxDecimals, [coin]),
- returnValue: 0,
- )
- as int);
+ int maxDecimals(_i2.CryptoCurrency? coin) => (super.noSuchMethod(
+ Invocation.method(#maxDecimals, [coin]),
+ returnValue: 0,
+ ) as int);
@override
void updateMaxDecimals({
@@ -1230,13 +1081,12 @@ class MockPrefs extends _i1.Mock implements _i10.Prefs {
@override
_i5.FusionInfo getFusionServerInfo(_i2.CryptoCurrency? coin) =>
(super.noSuchMethod(
- Invocation.method(#getFusionServerInfo, [coin]),
- returnValue: _FakeFusionInfo_4(
- this,
- Invocation.method(#getFusionServerInfo, [coin]),
- ),
- )
- as _i5.FusionInfo);
+ Invocation.method(#getFusionServerInfo, [coin]),
+ returnValue: _FakeFusionInfo_4(
+ this,
+ Invocation.method(#getFusionServerInfo, [coin]),
+ ),
+ ) as _i5.FusionInfo);
@override
void setFusionServerInfo(
diff --git a/test/electrumx_test.dart b/test/electrumx_test.dart
index 769dbc7..171b55c 100644
--- a/test/electrumx_test.dart
+++ b/test/electrumx_test.dart
@@ -22,31 +22,25 @@ import 'utilities/mock_electrum_server.dart';
class MockPrefs extends Mock implements Prefs {
@override
- bool get wifiOnly =>
- super.noSuchMethod(
- Invocation.getter(#wifiOnly),
- returnValue: false,
- returnValueForMissingStub: false,
- )
- as bool;
+ bool get wifiOnly => super.noSuchMethod(
+ Invocation.getter(#wifiOnly),
+ returnValue: false,
+ returnValueForMissingStub: false,
+ ) as bool;
@override
- bool get useTor =>
- super.noSuchMethod(
- Invocation.getter(#useTor),
- returnValue: false,
- returnValueForMissingStub: false,
- )
- as bool;
+ bool get useTor => super.noSuchMethod(
+ Invocation.getter(#useTor),
+ returnValue: false,
+ returnValueForMissingStub: false,
+ ) as bool;
@override
- bool get torKillSwitch =>
- super.noSuchMethod(
- Invocation.getter(#torKillSwitch),
- returnValue: false,
- returnValueForMissingStub: false,
- )
- as bool;
+ bool get torKillSwitch => super.noSuchMethod(
+ Invocation.getter(#torKillSwitch),
+ returnValue: false,
+ returnValueForMissingStub: false,
+ ) as bool;
}
class FakeTorService implements TorService {
diff --git a/test/flutter_secure_storage_interface_test.mocks.dart b/test/flutter_secure_storage_interface_test.mocks.dart
index 209dcc6..332ec37 100644
--- a/test/flutter_secure_storage_interface_test.mocks.dart
+++ b/test/flutter_secure_storage_interface_test.mocks.dart
@@ -66,75 +66,47 @@ class MockFlutterSecureStorage extends _i1.Mock
}
@override
- _i2.IOSOptions get iOptions =>
- (super.noSuchMethod(
- Invocation.getter(#iOptions),
- returnValue: _FakeIOSOptions_0(this, Invocation.getter(#iOptions)),
- )
- as _i2.IOSOptions);
+ _i2.IOSOptions get iOptions => (super.noSuchMethod(
+ Invocation.getter(#iOptions),
+ returnValue: _FakeIOSOptions_0(this, Invocation.getter(#iOptions)),
+ ) as _i2.IOSOptions);
@override
- _i2.AndroidOptions get aOptions =>
- (super.noSuchMethod(
- Invocation.getter(#aOptions),
- returnValue: _FakeAndroidOptions_1(
- this,
- Invocation.getter(#aOptions),
- ),
- )
- as _i2.AndroidOptions);
+ _i2.AndroidOptions get aOptions => (super.noSuchMethod(
+ Invocation.getter(#aOptions),
+ returnValue: _FakeAndroidOptions_1(this, Invocation.getter(#aOptions)),
+ ) as _i2.AndroidOptions);
@override
- _i2.LinuxOptions get lOptions =>
- (super.noSuchMethod(
- Invocation.getter(#lOptions),
- returnValue: _FakeLinuxOptions_2(
- this,
- Invocation.getter(#lOptions),
- ),
- )
- as _i2.LinuxOptions);
+ _i2.LinuxOptions get lOptions => (super.noSuchMethod(
+ Invocation.getter(#lOptions),
+ returnValue: _FakeLinuxOptions_2(this, Invocation.getter(#lOptions)),
+ ) as _i2.LinuxOptions);
@override
- _i2.WindowsOptions get wOptions =>
- (super.noSuchMethod(
- Invocation.getter(#wOptions),
- returnValue: _FakeWindowsOptions_3(
- this,
- Invocation.getter(#wOptions),
- ),
- )
- as _i2.WindowsOptions);
+ _i2.WindowsOptions get wOptions => (super.noSuchMethod(
+ Invocation.getter(#wOptions),
+ returnValue: _FakeWindowsOptions_3(this, Invocation.getter(#wOptions)),
+ ) as _i2.WindowsOptions);
@override
- _i2.WebOptions get webOptions =>
- (super.noSuchMethod(
- Invocation.getter(#webOptions),
- returnValue: _FakeWebOptions_4(
- this,
- Invocation.getter(#webOptions),
- ),
- )
- as _i2.WebOptions);
+ _i2.WebOptions get webOptions => (super.noSuchMethod(
+ Invocation.getter(#webOptions),
+ returnValue: _FakeWebOptions_4(this, Invocation.getter(#webOptions)),
+ ) as _i2.WebOptions);
@override
- _i2.AppleOptions get mOptions =>
- (super.noSuchMethod(
- Invocation.getter(#mOptions),
- returnValue: _FakeAppleOptions_5(
- this,
- Invocation.getter(#mOptions),
- ),
- )
- as _i2.AppleOptions);
+ _i2.AppleOptions get mOptions => (super.noSuchMethod(
+ Invocation.getter(#mOptions),
+ returnValue: _FakeAppleOptions_5(this, Invocation.getter(#mOptions)),
+ ) as _i2.AppleOptions);
@override
Map<String, List<_i3.ValueChanged<String?>>> get getListeners =>
(super.noSuchMethod(
- Invocation.getter(#getListeners),
- returnValue: <String, List<_i3.ValueChanged<String?>>>{},
- )
- as Map<String, List<_i3.ValueChanged<String?>>>);
+ Invocation.getter(#getListeners),
+ returnValue: <String, List<_i3.ValueChanged<String?>>>{},
+ ) as Map<String, List<_i3.ValueChanged<String?>>>);
@override
void registerListener({
@@ -180,22 +152,20 @@ class MockFlutterSecureStorage extends _i1.Mock
_i2.WebOptions? webOptions,
_i2.AppleOptions? mOptions,
_i2.WindowsOptions? wOptions,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#write, [], {
- #key: key,
- #value: value,
- #iOptions: iOptions,
- #aOptions: aOptions,
- #lOptions: lOptions,
- #webOptions: webOptions,
- #mOptions: mOptions,
- #wOptions: wOptions,
- }),
- returnValue: _i4.Future<void>.value(),
- returnValueForMissingStub: _i4.Future<void>.value(),
- )
- as _i4.Future<void>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#write, [], {
+ #key: key,
+ #value: value,
+ #iOptions: iOptions,
+ #aOptions: aOptions,
+ #lOptions: lOptions,
+ #webOptions: webOptions,
+ #mOptions: mOptions,
+ #wOptions: wOptions,
+ }),
+ returnValue: _i4.Future<void>.value(),
+ returnValueForMissingStub: _i4.Future<void>.value(),
+ ) as _i4.Future<void>);
@override
_i4.Future<String?> read({
@@ -206,20 +176,18 @@ class MockFlutterSecureStorage extends _i1.Mock
_i2.WebOptions? webOptions,
_i2.AppleOptions? mOptions,
_i2.WindowsOptions? wOptions,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#read, [], {
- #key: key,
- #iOptions: iOptions,
- #aOptions: aOptions,
- #lOptions: lOptions,
- #webOptions: webOptions,
- #mOptions: mOptions,
- #wOptions: wOptions,
- }),
- returnValue: _i4.Future<String?>.value(),
- )
- as _i4.Future<String?>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#read, [], {
+ #key: key,
+ #iOptions: iOptions,
+ #aOptions: aOptions,
+ #lOptions: lOptions,
+ #webOptions: webOptions,
+ #mOptions: mOptions,
+ #wOptions: wOptions,
+ }),
+ returnValue: _i4.Future<String?>.value(),
+ ) as _i4.Future<String?>);
@override
_i4.Future<bool> containsKey({
@@ -230,20 +198,18 @@ class MockFlutterSecureStorage extends _i1.Mock
_i2.WebOptions? webOptions,
_i2.AppleOptions? mOptions,
_i2.WindowsOptions? wOptions,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#containsKey, [], {
- #key: key,
- #iOptions: iOptions,
- #aOptions: aOptions,
- #lOptions: lOptions,
- #webOptions: webOptions,
- #mOptions: mOptions,
- #wOptions: wOptions,
- }),
- returnValue: _i4.Future<bool>.value(false),
- )
- as _i4.Future<bool>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#containsKey, [], {
+ #key: key,
+ #iOptions: iOptions,
+ #aOptions: aOptions,
+ #lOptions: lOptions,
+ #webOptions: webOptions,
+ #mOptions: mOptions,
+ #wOptions: wOptions,
+ }),
+ returnValue: _i4.Future<bool>.value(false),
+ ) as _i4.Future<bool>);
@override
_i4.Future<void> delete({
@@ -254,21 +220,19 @@ class MockFlutterSecureStorage extends _i1.Mock
_i2.WebOptions? webOptions,
_i2.AppleOptions? mOptions,
_i2.WindowsOptions? wOptions,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#delete, [], {
- #key: key,
- #iOptions: iOptions,
- #aOptions: aOptions,
- #lOptions: lOptions,
- #webOptions: webOptions,
- #mOptions: mOptions,
- #wOptions: wOptions,
- }),
- returnValue: _i4.Future<void>.value(),
- returnValueForMissingStub: _i4.Future<void>.value(),
- )
- as _i4.Future<void>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#delete, [], {
+ #key: key,
+ #iOptions: iOptions,
+ #aOptions: aOptions,
+ #lOptions: lOptions,
+ #webOptions: webOptions,
+ #mOptions: mOptions,
+ #wOptions: wOptions,
+ }),
+ returnValue: _i4.Future<void>.value(),
+ returnValueForMissingStub: _i4.Future<void>.value(),
+ ) as _i4.Future<void>);
@override
_i4.Future<Map<String, String>> readAll({
@@ -278,21 +242,17 @@ class MockFlutterSecureStorage extends _i1.Mock
_i2.WebOptions? webOptions,
_i2.AppleOptions? mOptions,
_i2.WindowsOptions? wOptions,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#readAll, [], {
- #iOptions: iOptions,
- #aOptions: aOptions,
- #lOptions: lOptions,
- #webOptions: webOptions,
- #mOptions: mOptions,
- #wOptions: wOptions,
- }),
- returnValue: _i4.Future<Map<String, String>>.value(
- <String, String>{},
- ),
- )
- as _i4.Future<Map<String, String>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#readAll, [], {
+ #iOptions: iOptions,
+ #aOptions: aOptions,
+ #lOptions: lOptions,
+ #webOptions: webOptions,
+ #mOptions: mOptions,
+ #wOptions: wOptions,
+ }),
+ returnValue: _i4.Future<Map<String, String>>.value(<String, String>{}),
+ ) as _i4.Future<Map<String, String>>);
@override
_i4.Future<void> deleteAll({
@@ -302,26 +262,22 @@ class MockFlutterSecureStorage extends _i1.Mock
_i2.WebOptions? webOptions,
_i2.AppleOptions? mOptions,
_i2.WindowsOptions? wOptions,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#deleteAll, [], {
- #iOptions: iOptions,
- #aOptions: aOptions,
- #lOptions: lOptions,
- #webOptions: webOptions,
- #mOptions: mOptions,
- #wOptions: wOptions,
- }),
- returnValue: _i4.Future<void>.value(),
- returnValueForMissingStub: _i4.Future<void>.value(),
- )
- as _i4.Future<void>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#deleteAll, [], {
+ #iOptions: iOptions,
+ #aOptions: aOptions,
+ #lOptions: lOptions,
+ #webOptions: webOptions,
+ #mOptions: mOptions,
+ #wOptions: wOptions,
+ }),
+ returnValue: _i4.Future<void>.value(),
+ returnValueForMissingStub: _i4.Future<void>.value(),
+ ) as _i4.Future<void>);
@override
- _i4.Future<bool?> isCupertinoProtectedDataAvailable() =>
- (super.noSuchMethod(
- Invocation.method(#isCupertinoProtectedDataAvailable, []),
- returnValue: _i4.Future<bool?>.value(),
- )
- as _i4.Future<bool?>);
+ _i4.Future<bool?> isCupertinoProtectedDataAvailable() => (super.noSuchMethod(
+ Invocation.method(#isCupertinoProtectedDataAvailable, []),
+ returnValue: _i4.Future<bool?>.value(),
+ ) as _i4.Future<bool?>);
}
diff --git a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart
index 7c9e989..a168dd6 100644
--- a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart
+++ b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart
@@ -69,31 +69,25 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
}
@override
- _i2.CryptoCurrency get cryptoCurrency =>
- (super.noSuchMethod(
- Invocation.getter(#cryptoCurrency),
- returnValue: _FakeCryptoCurrency_0(
- this,
- Invocation.getter(#cryptoCurrency),
- ),
- )
- as _i2.CryptoCurrency);
+ _i2.CryptoCurrency get cryptoCurrency => (super.noSuchMethod(
+ Invocation.getter(#cryptoCurrency),
+ returnValue: _FakeCryptoCurrency_0(
+ this,
+ Invocation.getter(#cryptoCurrency),
+ ),
+ ) as _i2.CryptoCurrency);
@override
- _i6.TorPlainNetworkOption get netType =>
- (super.noSuchMethod(
- Invocation.getter(#netType),
- returnValue: _i6.TorPlainNetworkOption.tor,
- )
- as _i6.TorPlainNetworkOption);
+ _i6.TorPlainNetworkOption get netType => (super.noSuchMethod(
+ Invocation.getter(#netType),
+ returnValue: _i6.TorPlainNetworkOption.tor,
+ ) as _i6.TorPlainNetworkOption);
@override
- String get host =>
- (super.noSuchMethod(
- Invocation.getter(#host),
- returnValue: _i7.dummyValue<String>(this, Invocation.getter(#host)),
- )
- as String);
+ String get host => (super.noSuchMethod(
+ Invocation.getter(#host),
+ returnValue: _i7.dummyValue<String>(this, Invocation.getter(#host)),
+ ) as String);
@override
int get port =>
@@ -105,23 +99,20 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
as bool);
@override
- int get currentFailoverIndex =>
- (super.noSuchMethod(
- Invocation.getter(#currentFailoverIndex),
- returnValue: 0,
- )
- as int);
+ int get currentFailoverIndex => (super.noSuchMethod(
+ Invocation.getter(#currentFailoverIndex),
+ returnValue: 0,
+ ) as int);
@override
Duration get connectionTimeoutForSpecialCaseJsonRPCClients =>
(super.noSuchMethod(
- Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
- returnValue: _FakeDuration_1(
- this,
- Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
- ),
- )
- as Duration);
+ Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
+ returnValue: _FakeDuration_1(
+ this,
+ Invocation.getter(#connectionTimeoutForSpecialCaseJsonRPCClients),
+ ),
+ ) as Duration);
@override
set currentFailoverIndex(int? value) => super.noSuchMethod(
@@ -130,22 +121,18 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
);
@override
- _i8.Future<void> closeAdapter() =>
- (super.noSuchMethod(
- Invocation.method(#closeAdapter, []),
- returnValue: _i8.Future<void>.value(),
- returnValueForMissingStub: _i8.Future<void>.value(),
- )
- as _i8.Future<void>);
+ _i8.Future<void> closeAdapter() => (super.noSuchMethod(
+ Invocation.method(#closeAdapter, []),
+ returnValue: _i8.Future<void>.value(),
+ returnValueForMissingStub: _i8.Future<void>.value(),
+ ) as _i8.Future<void>);
@override
- _i8.Future<void> checkElectrumAdapter() =>
- (super.noSuchMethod(
- Invocation.method(#checkElectrumAdapter, []),
- returnValue: _i8.Future<void>.value(),
- returnValueForMissingStub: _i8.Future<void>.value(),
- )
- as _i8.Future<void>);
+ _i8.Future<void> checkElectrumAdapter() => (super.noSuchMethod(
+ Invocation.method(#checkElectrumAdapter, []),
+ returnValue: _i8.Future<void>.value(),
+ returnValueForMissingStub: _i8.Future<void>.value(),
+ ) as _i8.Future<void>);
@override
_i8.Future<dynamic> request({
@@ -154,18 +141,16 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
String? requestID,
int? retries = 2,
Duration? requestTimeout = const Duration(seconds: 60),
- }) =>
- (super.noSuchMethod(
- Invocation.method(#request, [], {
- #command: command,
- #args: args,
- #requestID: requestID,
- #retries: retries,
- #requestTimeout: requestTimeout,
- }),
- returnValue: _i8.Future<dynamic>.value(),
- )
- as _i8.Future<dynamic>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#request, [], {
+ #command: command,
+ #args: args,
+ #requestID: requestID,
+ #retries: retries,
+ #requestTimeout: requestTimeout,
+ }),
+ returnValue: _i8.Future<dynamic>.value(),
+ ) as _i8.Future<dynamic>);
@override
_i8.Future<List<dynamic>> batchRequest({
@@ -173,372 +158,316 @@ class MockElectrumXClient extends _i1.Mock implements _i5.ElectrumXClient {
required List<dynamic>? args,
Duration? requestTimeout = const Duration(seconds: 60),
int? retries = 2,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#batchRequest, [], {
- #command: command,
- #args: args,
- #requestTimeout: requestTimeout,
- #retries: retries,
- }),
- returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
- )
- as _i8.Future<List<dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#batchRequest, [], {
+ #command: command,
+ #args: args,
+ #requestTimeout: requestTimeout,
+ #retries: retries,
+ }),
+ returnValue: _i8.Future<List<dynamic>>.value(<dynamic>[]),
+ ) as _i8.Future<List<dynamic>>);
@override
_i8.Future<bool> ping({
String? requestID,
int? retryCount = 1,
Duration? timeout = const Duration(seconds: 30),
- }) =>
- (super.noSuchMethod(
- Invocation.method(#ping, [], {
- #requestID: requestID,
- #retryCount: retryCount,
- #timeout: timeout,
- }),
- returnValue: _i8.Future<bool>.value(false),
- )
- as _i8.Future<bool>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#ping, [], {
+ #requestID: requestID,
+ #retryCount: retryCount,
+ #timeout: timeout,
+ }),
+ returnValue: _i8.Future<bool>.value(false),
+ ) as _i8.Future<bool>);
@override
_i8.Future<Map<String, dynamic>> getBlockHeadTip({String? requestID}) =>
(super.noSuchMethod(
- Invocation.method(#getBlockHeadTip, [], {#requestID: requestID}),
- returnValue: _i8.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i8.Future<Map<String, dynamic>>);
+ Invocation.method(#getBlockHeadTip, [], {#requestID: requestID}),
+ returnValue: _i8.Future<Map<String, dynamic>>.value(
+ <String, dynamic>{},
+ ),
+ ) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<Map<String, dynamic>> getServerFeatures({String? requestID}) =>
(super.noSuchMethod(
- Invocation.method(#getServerFeatures, [], {#requestID: requestID}),
- returnValue: _i8.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i8.Future<Map<String, dynamic>>);
+ Invocation.method(#getServerFeatures, [], {#requestID: requestID}),
+ returnValue: _i8.Future<Map<String, dynamic>>.value(
+ <String, dynamic>{},
+ ),
+ ) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<String> broadcastTransaction({
required String? rawTx,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#broadcastTransaction, [], {
- #rawTx: rawTx,
- #requestID: requestID,
- }),
- returnValue: _i8.Future<String>.value(
- _i7.dummyValue<String>(
- this,
- Invocation.method(#broadcastTransaction, [], {
- #rawTx: rawTx,
- #requestID: requestID,
- }),
- ),
- ),
- )
- as _i8.Future<String>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#broadcastTransaction, [], {
+ #rawTx: rawTx,
+ #requestID: requestID,
+ }),
+ returnValue: _i8.Future<String>.value(
+ _i7.dummyValue<String>(
+ this,
+ Invocation.method(#broadcastTransaction, [], {
+ #rawTx: rawTx,
+ #requestID: requestID,
+ }),
+ ),
+ ),
+ ) as _i8.Future<String>);
@override
_i8.Future<Map<String, dynamic>> getBalance({
required String? scripthash,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getBalance, [], {
- #scripthash: scripthash,
- #requestID: requestID,
- }),
- returnValue: _i8.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i8.Future<Map<String, dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getBalance, [], {
+ #scripthash: scripthash,
+ #requestID: requestID,
+ }),
+ returnValue: _i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
+ ) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<List<Map<String, dynamic>>> getHistory({
required String? scripthash,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getHistory, [], {
- #scripthash: scripthash,
- #requestID: requestID,
- }),
- returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
- <Map<String, dynamic>>[],
- ),
- )
- as _i8.Future<List<Map<String, dynamic>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getHistory, [], {
+ #scripthash: scripthash,
+ #requestID: requestID,
+ }),
+ returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
+ <Map<String, dynamic>>[],
+ ),
+ ) as _i8.Future<List<Map<String, dynamic>>>);
@override
_i8.Future<List<List<Map<String, dynamic>>>> getBatchHistory({
required List<dynamic>? args,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getBatchHistory, [], {#args: args}),
- returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
- <List<Map<String, dynamic>>>[],
- ),
- )
- as _i8.Future<List<List<Map<String, dynamic>>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getBatchHistory, [], {#args: args}),
+ returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
+ <List<Map<String, dynamic>>>[],
+ ),
+ ) as _i8.Future<List<List<Map<String, dynamic>>>>);
@override
_i8.Future<List<Map<String, dynamic>>> getUTXOs({
required String? scripthash,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getUTXOs, [], {
- #scripthash: scripthash,
- #requestID: requestID,
- }),
- returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
- <Map<String, dynamic>>[],
- ),
- )
- as _i8.Future<List<Map<String, dynamic>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getUTXOs, [], {
+ #scripthash: scripthash,
+ #requestID: requestID,
+ }),
+ returnValue: _i8.Future<List<Map<String, dynamic>>>.value(
+ <Map<String, dynamic>>[],
+ ),
+ ) as _i8.Future<List<Map<String, dynamic>>>);
@override
_i8.Future<List<List<Map<String, dynamic>>>> getBatchUTXOs({
required List<dynamic>? args,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getBatchUTXOs, [], {#args: args}),
- returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
- <List<Map<String, dynamic>>>[],
- ),
- )
- as _i8.Future<List<List<Map<String, dynamic>>>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getBatchUTXOs, [], {#args: args}),
+ returnValue: _i8.Future<List<List<Map<String, dynamic>>>>.value(
+ <List<Map<String, dynamic>>>[],
+ ),
+ ) as _i8.Future<List<List<Map<String, dynamic>>>>);
@override
_i8.Future<Map<String, dynamic>> getTransaction({
required String? txHash,
bool? verbose = true,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getTransaction, [], {
- #txHash: txHash,
- #verbose: verbose,
- #requestID: requestID,
- }),
- returnValue: _i8.Future<Map<String, dynamic>>.value(
- <String, dynamic>{},
- ),
- )
- as _i8.Future<Map<String, dynamic>>);
+ }) => (super.noSuchMethod(
+ Invocation.method(#getTransaction, [], {
+ #txHash: txHash,
+ #verbose: verbose,
+ #requestID: requestID,
+ }),
+ returnValue: _i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
+ ) as _i8.Future<Map<String, dynamic>>);
@override
_i8.Future<List<Map<String, dynamic>>> getBatchTransactions({
required List<String>? txHashes,
String? requestID,
- }) =>
- (super.noSuchMethod(
- Invocation.method(#getBatchTransactions, [], {
- #txHashes: txHashes,
- #requestID: requesWhy this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.