What changed, and why it matters
This commit is purely a code-formatting cleanup. It runs the Dart formatter on 21 files related to the CakePay and ShopinBit features, changing only whitespace, line breaks, and indentation. No functionality, logic, or security behavior was altered.
No security action needed. This is a routine formatting commit. Reviewers can verify by confirming the command used was `dart format` and that no non-whitespace changes are present.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff shows only dart format output across 21 Dart files. All changes are stylistic: collapsing or expanding argument lists, reindenting chained method calls, wrapping ternary expressions, and adjusting trailing commas. There are no semantic changes to parsing, validation, network calls, cryptography, authentication, or UI behavior. The one apparent structural change in shopinbit_settings.dart is just reindentation of an existing widget tree with no added/removed widgets or logic.
Changed components
lib/pages/cakepay/*lib/pages/shopinbit/*lib/pages/more_view/services_view.dartlib/pages/settings_views/global_settings_view/hidden_settings.dartlib/pages/wallet_view/wallet_view.dartlib/pages_desktop_specific/more_view/sub_widgets/*lib/pages_desktop_specific/settings/settings_menu/shopinbit_settings.dartlib/services/shopinbit/shopinbit_service.dartInspect captured patch +542 / −702
diff --git a/lib/pages/cakepay/cakepay_card_detail_view.dart b/lib/pages/cakepay/cakepay_card_detail_view.dart
index 38dbc92..7fbd0eb 100644
--- a/lib/pages/cakepay/cakepay_card_detail_view.dart
+++ b/lib/pages/cakepay/cakepay_card_detail_view.dart
@@ -100,23 +100,17 @@ class _CakePayCardDetailViewState extends State<CakePayCardDetailView> {
),
child: Column(
children: [
- Text(
- "Attention",
- style: STextStyles.desktopH2(context),
- ),
+ Text("Attention", style: STextStyles.desktopH2(context)),
const SizedBox(height: 16),
Text(
"You are about to open "
"${uri.scheme}://${uri.host} "
"in your browser.",
- style: STextStyles.desktopTextSmall(
- context,
- ),
+ style: STextStyles.desktopTextSmall(context),
),
const SizedBox(height: 35),
Row(
- mainAxisAlignment:
- MainAxisAlignment.center,
+ mainAxisAlignment: MainAxisAlignment.center,
children: [
SecondaryButton(
width: 200,
@@ -160,9 +154,9 @@ class _CakePayCardDetailViewState extends State<CakePayCardDetailView> {
child: Text(
"Cancel",
style: STextStyles.button(context).copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .accentColorDark,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorDark,
),
),
),
@@ -173,10 +167,7 @@ class _CakePayCardDetailViewState extends State<CakePayCardDetailView> {
onPressed: () {
Navigator.of(context).pop(true);
},
- child: Text(
- "Continue",
- style: STextStyles.button(context),
- ),
+ child: Text("Continue", style: STextStyles.button(context)),
),
),
);
@@ -186,10 +177,7 @@ class _CakePayCardDetailViewState extends State<CakePayCardDetailView> {
Future<void> _openTerms() async {
const url = "https://cakepay.com/terms/";
if (await _showOpenBrowserWarning(url)) {
- await launchUrl(
- Uri.parse(url),
- mode: LaunchMode.externalApplication,
- );
+ await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
}
}
@@ -316,30 +304,30 @@ class _CakePayCardDetailViewState extends State<CakePayCardDetailView> {
),
onChanged: (_) => setState(() {}),
style: isDesktop
- ? STextStyles.desktopTextExtraSmall(context)
- .copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldActiveText,
+ ? STextStyles.desktopTextExtraSmall(context).copyWith(
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textFieldActiveText,
height: 1.8,
)
: STextStyles.field(context).copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldActiveText,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textFieldActiveText,
),
- decoration: standardInputDecoration(
- "Amount",
- _customAmountFocusNode,
- context,
- desktopMed: isDesktop,
- ).copyWith(
- filled: true,
- contentPadding: const EdgeInsets.symmetric(
- horizontal: 16,
- vertical: 12,
- ),
- ),
+ decoration:
+ standardInputDecoration(
+ "Amount",
+ _customAmountFocusNode,
+ context,
+ desktopMed: isDesktop,
+ ).copyWith(
+ filled: true,
+ contentPadding: const EdgeInsets.symmetric(
+ horizontal: 16,
+ vertical: 12,
+ ),
+ ),
),
),
],
@@ -395,23 +383,20 @@ class _CakePayCardDetailViewState extends State<CakePayCardDetailView> {
child: RichText(
text: TextSpan(
style: isDesktop
- ? STextStyles.desktopTextExtraExtraSmall(
- context,
- )
+ ? STextStyles.desktopTextExtraExtraSmall(context)
: STextStyles.w500_14(context),
children: [
const TextSpan(text: "I agree to the "),
TextSpan(
text: "terms and conditions",
- style: STextStyles.richLink(context)
- .copyWith(
- fontSize: isDesktop ? null : 14,
- ),
- recognizer: TapGestureRecognizer()
- ..onTap = _openTerms,
+ style: STextStyles.richLink(
+ context,
+ ).copyWith(fontSize: isDesktop ? null : 14),
+ recognizer: TapGestureRecognizer()..onTap = _openTerms,
),
const TextSpan(
- text: ", confirm I am not using a VPN, "
+ text:
+ ", confirm I am not using a VPN, "
"and understand refunds are voided. "
"I understand that the gift card "
"will be delivered to the listed "
diff --git a/lib/pages/cakepay/cakepay_order_view.dart b/lib/pages/cakepay/cakepay_order_view.dart
index 9f3b9fb..71c9fe8 100644
--- a/lib/pages/cakepay/cakepay_order_view.dart
+++ b/lib/pages/cakepay/cakepay_order_view.dart
@@ -139,12 +139,8 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
CryptoCurrency? _resolveCoin(String apiTicker) {
final ticker = apiTicker.toUpperCase();
var coin = AppConfig.getCryptoCurrencyForTicker(ticker);
- if (coin == null &&
- ticker.contains('_') &&
- !ticker.endsWith('_LN')) {
- coin = AppConfig.getCryptoCurrencyForTicker(
- ticker.split('_').first,
- );
+ if (coin == null && ticker.contains('_') && !ticker.endsWith('_LN')) {
+ coin = AppConfig.getCryptoCurrencyForTicker(ticker.split('_').first);
}
return coin;
}
@@ -220,8 +216,7 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
_loading = false;
if (!resp.hasError && resp.value != null) {
var order = resp.value!;
- final override =
- CakePayService.devStatusOverrides[order.orderId];
+ final override = CakePayService.devStatusOverrides[order.orderId];
if (override != null) {
order = order.copyWith(status: override);
}
@@ -305,9 +300,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
Icon(
Icons.copy,
size: 14,
- color: Theme.of(context)
- .extension<StackColors>()!
- .accentColorBlue,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorBlue,
),
],
),
@@ -434,12 +429,7 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
);
final details = <Widget>[
- Row(
- mainAxisAlignment: MainAxisAlignment.end,
- children: [
- statusBadge,
- ],
- ),
+ Row(mainAxisAlignment: MainAxisAlignment.end, children: [statusBadge]),
SizedBox(height: isDesktop ? 8 : 6),
RoundedWhiteContainer(
child: GestureDetector(
@@ -474,9 +464,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
Icon(
Icons.copy,
size: 14,
- color: Theme.of(context)
- .extension<StackColors>()!
- .accentColorBlue,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorBlue,
),
],
),
@@ -666,9 +656,9 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
Icon(
Icons.check_circle,
size: 20,
- color: Theme.of(context)
- .extension<StackColors>()!
- .accentColorGreen,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorGreen,
),
const SizedBox(width: 8),
Expanded(
@@ -676,19 +666,17 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
status == CakePayOrderStatus.complete
? "Order complete."
: "Payment received.",
- style: (isDesktop
- ? STextStyles
- .desktopTextExtraExtraSmall(
- context,
- )
- : STextStyles.itemSubtitle12(
+ style:
+ (isDesktop
+ ? STextStyles.desktopTextExtraExtraSmall(
+ context,
+ )
+ : STextStyles.itemSubtitle12(context))
+ .copyWith(
+ color: Theme.of(
context,
- ))
- .copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .accentColorGreen,
- ),
+ ).extension<StackColors>()!.accentColorGreen,
+ ),
),
),
],
@@ -699,9 +687,7 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
"the email address provided when creating "
"the order.",
style: isDesktop
- ? STextStyles.desktopTextExtraExtraSmall(
- context,
- )
+ ? STextStyles.desktopTextExtraExtraSmall(context)
: STextStyles.itemSubtitle12(context),
),
],
@@ -734,27 +720,23 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
Icon(
Icons.cancel,
size: 20,
- color: Theme.of(context)
- .extension<StackColors>()!
- .textSubtitle1,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textSubtitle1,
),
const SizedBox(width: 8),
Expanded(
child: Text(
_statusLabel(status),
- style: (isDesktop
- ? STextStyles
- .desktopTextExtraExtraSmall(
- context,
- )
- : STextStyles.itemSubtitle12(
+ style:
+ (isDesktop
+ ? STextStyles.desktopTextExtraExtraSmall(context)
+ : STextStyles.itemSubtitle12(context))
+ .copyWith(
+ color: Theme.of(
context,
- ))
- .copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textSubtitle1,
- ),
+ ).extension<StackColors>()!.textSubtitle1,
+ ),
),
),
],
@@ -788,9 +770,7 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
final coin = _resolveCoin(selected.ticker);
final bool hasWallet =
coin != null &&
- ref.watch(pWallets).wallets.any(
- (w) => w.info.coin == coin,
- );
+ ref.watch(pWallets).wallets.any((w) => w.info.coin == coin);
details.add(SizedBox(height: isDesktop ? 8 : 4));
details.add(
@@ -807,24 +787,19 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
details.add(
Row(
children: List.generate(options.length, (index) {
- final isSelected =
- _selectedPaymentMethod == index;
+ final isSelected = _selectedPaymentMethod == index;
return Expanded(
child: GestureDetector(
- onTap: () => setState(
- () => _selectedPaymentMethod = index,
- ),
+ onTap: () => setState(() => _selectedPaymentMethod = index),
child: Container(
- padding: const EdgeInsets.symmetric(
- vertical: 10,
- ),
+ padding: const EdgeInsets.symmetric(vertical: 10),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
color: isSelected
- ? Theme.of(context)
- .extension<StackColors>()!
- .accentColorBlue
+ ? Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorBlue
: Colors.transparent,
width: 2,
),
@@ -833,24 +808,20 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
child: Text(
_tickerLabel(options[index].ticker),
textAlign: TextAlign.center,
- style: (isDesktop
- ? STextStyles
- .desktopTextExtraExtraSmall(
- context,
- )
- : STextStyles.itemSubtitle12(
- context,
- ))
- .copyWith(
- color: isSelected
- ? Theme.of(context)
- .extension<StackColors>()!
- .accentColorBlue
- : null,
- fontWeight: isSelected
- ? FontWeight.w600
- : null,
- ),
+ style:
+ (isDesktop
+ ? STextStyles.desktopTextExtraExtraSmall(
+ context,
+ )
+ : STextStyles.itemSubtitle12(context))
+ .copyWith(
+ color: isSelected
+ ? Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorBlue
+ : null,
+ fontWeight: isSelected ? FontWeight.w600 : null,
+ ),
),
),
),
@@ -865,10 +836,7 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
if (selected.address.isNotEmpty) {
details.add(
Center(
- child: QR(
- data: selected.address,
- size: isDesktop ? 200 : 180,
- ),
+ child: QR(data: selected.address, size: isDesktop ? 200 : 180),
),
);
details.add(SizedBox(height: isDesktop ? 16 : 12));
@@ -881,26 +849,18 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
- mainAxisAlignment:
- MainAxisAlignment.spaceBetween,
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"Amount",
style: isDesktop
- ? STextStyles
- .desktopTextExtraExtraSmall(
- context,
- )
- : STextStyles.itemSubtitle12(
- context,
- ),
+ ? STextStyles.desktopTextExtraExtraSmall(context)
+ : STextStyles.itemSubtitle12(context),
),
Text(
"${selected.amountFrom} $label",
style: isDesktop
- ? STextStyles.desktopTextSmall(
- context,
- )
+ ? STextStyles.desktopTextSmall(context)
: STextStyles.titleBold12(context),
),
],
@@ -908,9 +868,7 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
const SizedBox(height: 8),
GestureDetector(
onTap: () {
- Clipboard.setData(
- ClipboardData(text: selected.address),
- );
+ Clipboard.setData(ClipboardData(text: selected.address));
showFloatingFlushBar(
type: FlushBarType.info,
message: "Copied to clipboard",
@@ -919,65 +877,44 @@ class _CakePayOrderViewState extends ConsumerState<CakePayOrderView> {
);
},
child: Column(
- crossAxisAlignment:
- CrossAxisAlignment.start,
+ crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Text(
"$label address",
style: isDesktop
- ? STextStyles
- .desktopTextExtraExtraSmall(
- context,
- )
- : STextStyles
- .itemSubtitle12(
- context,
- ),
+ ? STextStyles.desktopTextExtraExtraSmall(context)
+ : STextStyles.itemSubtitle12(context),
),
const Spacer(),
Icon(
Icons.copy,
size: 14,
- color: Theme.of(context)
- .extension<StackColors>()!
- .accentColorBlue,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorBlue,
),
const SizedBox(width: 4),
- Text(
- "Copy",
- style:
- STextStyles.link2(context),
- ),
+ Text("Copy", style: STextStyles.link2(context)),
],
),
const SizedBox(height: 4),
Text(
selected.address,
style: isDesktop
- ? STextStyles
- .desktopTextExtraExtraSmall(
- context,
- )
- : STextStyles.itemSubtitle12(
- context,
- ),
+ ? STextStyles.desktopTextExtraExtraSmall(context)
+ : STextStyles.itemSubtitle12(context),
),
],
),
),
const SizedBox(height: 12),
PrimaryButton(
- label: hasWallet
- ? "Pay with $label"
- : "$label (no wallet)",
+ label: hasWallet ? "Pay with $label" : "$label (no wallet)",
enabled: hasWallet,
onPressed: hasWallet
- ? () => _payWithOption(
- selected,
- order.orderId,
- )
+ ? () => _payWithOption(selected, order.orderId)
: null,
),
],
diff --git a/lib/pages/cakepay/cakepay_orders_view.dart b/lib/pages/cakepay/cakepay_orders_view.dart
index 77a31ae..139db34 100644
--- a/lib/pages/cakepay/cakepay_orders_view.dart
+++ b/lib/pages/cakepay/cakepay_orders_view.dart
@@ -45,8 +45,7 @@ class _CakePayOrdersViewState extends State<CakePayOrdersView> {
final resp = await CakePayService.instance.client.getOrder(id);
if (!resp.hasError && resp.value != null) {
var order = resp.value!;
- final override =
- CakePayService.devStatusOverrides[order.orderId];
+ final override = CakePayService.devStatusOverrides[order.orderId];
if (override != null) {
order = order.copyWith(status: override);
}
diff --git a/lib/pages/cakepay/cakepay_vendors_view.dart b/lib/pages/cakepay/cakepay_vendors_view.dart
index 01d07ed..0e7f1b2 100644
--- a/lib/pages/cakepay/cakepay_vendors_view.dart
+++ b/lib/pages/cakepay/cakepay_vendors_view.dart
@@ -258,8 +258,8 @@ class _CakePayVendorsViewState extends State<CakePayVendorsView> {
);
}
return item.value!.toLowerCase().contains(
- searchValue.toLowerCase(),
- );
+ searchValue.toLowerCase(),
+ );
},
),
menuItemStyleData: const MenuItemStyleData(
diff --git a/lib/pages/more_view/services_view.dart b/lib/pages/more_view/services_view.dart
index fa4131f..aa4d7ac 100644
--- a/lib/pages/more_view/services_view.dart
+++ b/lib/pages/more_view/services_view.dart
@@ -151,10 +151,9 @@ class _ServicesViewState extends State<ServicesView> {
if (savedName != null && savedName.isNotEmpty) {
model.displayName = savedName;
}
- await Navigator.of(context).pushNamed(
- ShopInBitStep2.routeName,
- arguments: model,
- );
+ await Navigator.of(
+ context,
+ ).pushNamed(ShopInBitStep2.routeName, arguments: model);
} else {
// First-time user: show setup flow
await Navigator.of(context).pushNamed(
diff --git a/lib/pages/settings_views/global_settings_view/hidden_settings.dart b/lib/pages/settings_views/global_settings_view/hidden_settings.dart
index 3eca339..ca102c4 100644
--- a/lib/pages/settings_views/global_settings_view/hidden_settings.dart
+++ b/lib/pages/settings_views/global_settings_view/hidden_settings.dart
@@ -374,17 +374,16 @@ class HiddenSettings extends StatelessWidget {
onTap: () {
showDialog<void>(
context: context,
- builder: (_) =>
- const _CakePayDevStatusDialog(),
+ builder: (_) => const _CakePayDevStatusDialog(),
);
},
child: RoundedWhiteContainer(
child: Text(
"CakePay status overrides",
style: STextStyles.button(context).copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .accentColorDark,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorDark,
),
),
),
@@ -466,10 +465,7 @@ class _CakePayDevStatusDialogState extends State<_CakePayDevStatusDialog> {
CakePayService.devStatusOverrides.clear();
});
},
- child: Text(
- "Clear all",
- style: STextStyles.link2(context),
- ),
+ child: Text("Clear all", style: STextStyles.link2(context)),
),
],
),
@@ -494,9 +490,7 @@ class _CakePayDevStatusDialogState extends State<_CakePayDevStatusDialog> {
children: [
Expanded(
child: Text(
- id.length > 12
- ? "${id.substring(0, 12)}..."
- : id,
+ id.length > 12 ? "${id.substring(0, 12)}..." : id,
style: STextStyles.itemSubtitle12(context),
),
),
@@ -505,8 +499,9 @@ class _CakePayDevStatusDialogState extends State<_CakePayDevStatusDialog> {
value: current,
hint: Text(
"API default",
- style: STextStyles.itemSubtitle12(context)
- .copyWith(color: colors.textSubtitle2),
+ style: STextStyles.itemSubtitle12(
+ context,
+ ).copyWith(color: colors.textSubtitle2),
),
underline: const SizedBox(),
isDense: true,
@@ -515,8 +510,9 @@ class _CakePayDevStatusDialogState extends State<_CakePayDevStatusDialog> {
value: null,
child: Text(
"API default",
- style: STextStyles.itemSubtitle12(context)
- .copyWith(color: colors.textSubtitle2),
+ style: STextStyles.itemSubtitle12(
+ context,
+ ).copyWith(color: colors.textSubtitle2),
),
),
...CakePayOrderStatus.values.map(
diff --git a/lib/pages/shopinbit/shopinbit_car_fee_view.dart b/lib/pages/shopinbit/shopinbit_car_fee_view.dart
index 8db1d9a..69de421 100644
--- a/lib/pages/shopinbit/shopinbit_car_fee_view.dart
+++ b/lib/pages/shopinbit/shopinbit_car_fee_view.dart
@@ -168,14 +168,11 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
Future<void> _fetchCountries() async {
setState(() => _loadingCountries = true);
try {
- final resp =
- await ShopInBitService.instance.client.getCountries();
+ final resp = await ShopInBitService.instance.client.getCountries();
if (resp.hasError || resp.value == null) return;
_countries = resp.value!;
if (_selectedCountryIso != null &&
- !_countries.any(
- (c) => c['iso'] == _selectedCountryIso,
- )) {
+ !_countries.any((c) => c['iso'] == _selectedCountryIso)) {
_selectedCountryIso = null;
}
} catch (_) {
@@ -245,8 +242,7 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
unawaited(
showFloatingFlushBar(
type: FlushBarType.warning,
- message:
- resp.exception?.message ?? "Failed to create invoice",
+ message: resp.exception?.message ?? "Failed to create invoice",
context: context,
),
);
@@ -339,7 +335,9 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
final parsed = _parseBip21Amount(entry.value);
if (parsed != null && parsed.isNotEmpty) {
if (mounted) {
- setState(() => _displayedFee = "$parsed ${entry.key.toUpperCase()}");
+ setState(
+ () => _displayedFee = "$parsed ${entry.key.toUpperCase()}",
+ );
}
return;
}
@@ -398,9 +396,7 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
required bool isDesktop,
}) {
return ClipRRect(
- borderRadius: BorderRadius.circular(
- Constants.size.circularBorderRadius,
- ),
+ borderRadius: BorderRadius.circular(Constants.size.circularBorderRadius),
child: DropdownButtonHideUnderline(
child: DropdownButton2<String>(
value: value,
@@ -411,12 +407,10 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
child: Text(
c['label'] as String,
style: isDesktop
- ? STextStyles.desktopTextExtraSmall(
- context,
- ).copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldActiveText,
+ ? STextStyles.desktopTextExtraSmall(context).copyWith(
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textFieldActiveText,
)
: STextStyles.w500_14(context),
),
@@ -433,9 +427,9 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
_loadingCountries ? "Loading countries..." : hint,
style: isDesktop
? STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldDefaultSearchIconLeft,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textFieldDefaultSearchIconLeft,
)
: STextStyles.fieldLabel(context),
),
@@ -457,9 +451,9 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
Assets.svg.chevronDown,
width: 12,
height: 6,
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldActiveSearchIconRight,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textFieldActiveSearchIconRight,
),
),
),
@@ -497,9 +491,7 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
.where((c) => c['iso'] == item.value)
.map((c) => c['label'] as String)
.firstOrNull;
- return label?.toLowerCase().contains(
- searchValue.toLowerCase(),
- ) ??
+ return label?.toLowerCase().contains(searchValue.toLowerCase()) ??
false;
},
),
@@ -726,9 +718,7 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
horizontal: 32,
vertical: 16,
),
- child: SingleChildScrollView(
- child: content,
- ),
+ child: SingleChildScrollView(child: content),
),
),
],
@@ -745,12 +735,11 @@ class _ShopInBitCarFeeViewState extends State<ShopInBitCarFeeView> {
}
},
child: Scaffold(
- backgroundColor:
- Theme.of(context).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(
+ context,
+ ).extension<StackColors>()!.background,
appBar: AppBar(
- leading: AppBarBackButton(
- onPressed: _popToStep2,
- ),
+ leading: AppBarBackButton(onPressed: _popToStep2),
title: Text("ShopinBit", style: STextStyles.navBarTitle(context)),
),
body: SafeArea(
diff --git a/lib/pages/shopinbit/shopinbit_car_research_payment_view.dart b/lib/pages/shopinbit/shopinbit_car_research_payment_view.dart
index 0392e66..76f36d7 100644
--- a/lib/pages/shopinbit/shopinbit_car_research_payment_view.dart
+++ b/lib/pages/shopinbit/shopinbit_car_research_payment_view.dart
@@ -378,8 +378,9 @@ class _ShopInBitCarResearchPaymentViewState
if (_logging) return;
setState(() => _logging = true);
try {
- final resp = await ShopInBitService.instance.client
- .logCarResearchPayment(widget.invoice.btcpayInvoice);
+ final resp = await ShopInBitService.instance.client.logCarResearchPayment(
+ widget.invoice.btcpayInvoice,
+ );
if (resp.hasError || resp.value == null) {
if (mounted) {
setState(() => _logging = false);
@@ -411,10 +412,9 @@ class _ShopInBitCarResearchPaymentViewState
);
} else {
unawaited(
- Navigator.of(context).pushNamed(
- ShopInBitOrderCreated.routeName,
- arguments: widget.model,
- ),
+ Navigator.of(
+ context,
+ ).pushNamed(ShopInBitOrderCreated.routeName, arguments: widget.model),
);
}
} catch (e) {
@@ -497,9 +497,9 @@ class _ShopInBitCarResearchPaymentViewState
border: Border(
bottom: BorderSide(
color: isSelected
- ? Theme.of(context)
- .extension<StackColors>()!
- .accentColorBlue
+ ? Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorBlue
: Colors.transparent,
width: 2,
),
@@ -520,9 +520,7 @@ class _ShopInBitCarResearchPaymentViewState
.extension<StackColors>()!
.accentColorBlue
: null,
- fontWeight: isSelected
- ? FontWeight.w600
- : null,
+ fontWeight: isSelected ? FontWeight.w600 : null,
),
),
),
@@ -579,9 +577,9 @@ class _ShopInBitCarResearchPaymentViewState
: STextStyles.itemSubtitle12(context))
.copyWith(
color: _isTerminal
- ? Theme.of(context)
- .extension<StackColors>()!
- .accentColorGreen
+ ? Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorGreen
: null,
fontWeight: _isTerminal ? FontWeight.w600 : null,
),
@@ -664,7 +662,7 @@ class _ShopInBitCarResearchPaymentViewState
: () => unawaited(_checkForPayment()))
: null,
),
-],
+ ],
);
if (isDesktop) {
@@ -713,9 +711,7 @@ class _ShopInBitCarResearchPaymentViewState
context,
).extension<StackColors>()!.background,
appBar: AppBar(
- leading: AppBarBackButton(
- onPressed: _popToTickets,
- ),
+ leading: AppBarBackButton(onPressed: _popToTickets),
title: Text("ShopinBit", style: STextStyles.navBarTitle(context)),
),
body: SafeArea(
diff --git a/lib/pages/shopinbit/shopinbit_order_created.dart b/lib/pages/shopinbit/shopinbit_order_created.dart
index d07752c..e522e88 100644
--- a/lib/pages/shopinbit/shopinbit_order_created.dart
+++ b/lib/pages/shopinbit/shopinbit_order_created.dart
@@ -180,12 +180,11 @@ class ShopInBitOrderCreated extends StatelessWidget {
}
},
child: Scaffold(
- backgroundColor:
- Theme.of(context).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(
+ context,
+ ).extension<StackColors>()!.background,
appBar: AppBar(
- leading: AppBarBackButton(
- onPressed: () => _popToServices(context),
- ),
+ leading: AppBarBackButton(onPressed: () => _popToServices(context)),
title: Text("ShopinBit", style: STextStyles.navBarTitle(context)),
),
body: SafeArea(
diff --git a/lib/pages/shopinbit/shopinbit_payment_view.dart b/lib/pages/shopinbit/shopinbit_payment_view.dart
index 1a51cbe..8747670 100644
--- a/lib/pages/shopinbit/shopinbit_payment_view.dart
+++ b/lib/pages/shopinbit/shopinbit_payment_view.dart
@@ -386,10 +386,7 @@ class _ShopInBitPaymentViewState extends ConsumerState<ShopInBitPaymentView> {
} else {
final coin = AppConfig.getCryptoCurrencyForTicker(ticker);
if (coin != null) {
- return ref
- .read(pWallets)
- .wallets
- .any((e) => e.info.coin == coin);
+ return ref.read(pWallets).wallets.any((e) => e.info.coin == coin);
}
}
return false;
@@ -425,10 +422,7 @@ class _ShopInBitPaymentViewState extends ConsumerState<ShopInBitPaymentView> {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
- Text(
- "$ticker Payment",
- style: STextStyles.pageTitleH2(context),
- ),
+ Text("$ticker Payment", style: STextStyles.pageTitleH2(context)),
const SizedBox(height: 16),
GestureDetector(
onTap: () {
@@ -533,7 +527,10 @@ class _ShopInBitPaymentViewState extends ConsumerState<ShopInBitPaymentView> {
height: 24,
child: Center(
child: Text(
- ticker.substring(0, ticker.length > 2 ? 2 : ticker.length),
+ ticker.substring(
+ 0,
+ ticker.length > 2 ? 2 : ticker.length,
+ ),
style: STextStyles.itemSubtitle12(context),
),
),
@@ -543,10 +540,7 @@ class _ShopInBitPaymentViewState extends ConsumerState<ShopInBitPaymentView> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- Text(
- ticker,
- style: STextStyles.titleBold12(context),
- ),
+ Text(ticker, style: STextStyles.titleBold12(context)),
if (amountStr != null)
Text(
"$amountStr $ticker",
@@ -556,10 +550,7 @@ class _ShopInBitPaymentViewState extends ConsumerState<ShopInBitPaymentView> {
),
),
if (hasWallet)
- Text(
- "PAY NOW",
- style: STextStyles.link2(context),
- )
+ Text("PAY NOW", style: STextStyles.link2(context))
else
Icon(
Icons.info_outline,
@@ -821,12 +812,11 @@ class _ShopInBitPaymentViewState extends ConsumerState<ShopInBitPaymentView> {
}
},
child: Scaffold(
- backgroundColor:
- Theme.of(context).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(
+ context,
+ ).extension<StackColors>()!.background,
appBar: AppBar(
- leading: AppBarBackButton(
- onPressed: _popToTickets,
- ),
+ leading: AppBarBackButton(onPressed: _popToTickets),
title: Text("ShopinBit", style: STextStyles.navBarTitle(context)),
),
body: SafeArea(
diff --git a/lib/pages/shopinbit/shopinbit_setup_view.dart b/lib/pages/shopinbit/shopinbit_setup_view.dart
index 3c026a8..5566d53 100644
--- a/lib/pages/shopinbit/shopinbit_setup_view.dart
+++ b/lib/pages/shopinbit/shopinbit_setup_view.dart
@@ -37,9 +37,7 @@ class _ShopInBitSetupViewState extends State<ShopInBitSetupView> {
super.initState();
_keyFuture = ShopInBitService.instance.ensureCustomerKey();
final existingName = ShopInBitService.instance.loadDisplayName();
- _nameController = TextEditingController(
- text: existingName ?? '',
- );
+ _nameController = TextEditingController(text: existingName ?? '');
_nameFocusNode = FocusNode();
_nameFocusNode.addListener(() {
@@ -61,10 +59,9 @@ class _ShopInBitSetupViewState extends State<ShopInBitSetupView> {
await ShopInBitService.instance.setSetupComplete(true);
if (mounted) {
- Navigator.of(context).pushReplacementNamed(
- ShopInBitStep2.routeName,
- arguments: widget.model,
- );
+ Navigator.of(
+ context,
+ ).pushReplacementNamed(ShopInBitStep2.routeName, arguments: widget.model);
}
}
@@ -117,14 +114,12 @@ class _ShopInBitSetupViewState extends State<ShopInBitSetupView> {
if (snapshot.hasError) {
return Text(
"Failed to generate key. Please try again.",
- style: STextStyles.itemSubtitle(
- context,
- ).copyWith(
- color:
- Theme.of(context)
- .extension<StackColors>()!
- .textError,
- ),
+ style: STextStyles.itemSubtitle(context)
+ .copyWith(
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textError,
+ ),
);
}
final key = snapshot.data!;
@@ -174,17 +169,18 @@ class _ShopInBitSetupViewState extends State<ShopInBitSetupView> {
enableSuggestions: false,
onChanged: (_) => setState(() {}),
style: STextStyles.field(context),
- decoration: standardInputDecoration(
- "Display name",
- _nameFocusNode,
- context,
- ).copyWith(
- filled: true,
- contentPadding: const EdgeInsets.symmetric(
- horizontal: 16,
- vertical: 12,
- ),
- ),
+ decoration:
+ standardInputDecoration(
+ "Display name",
+ _nameFocusNode,
+ context,
+ ).copyWith(
+ filled: true,
+ contentPadding: const EdgeInsets.symmetric(
+ horizontal: 16,
+ vertical: 12,
+ ),
+ ),
),
),
const Spacer(),
diff --git a/lib/pages/shopinbit/shopinbit_shipping_view.dart b/lib/pages/shopinbit/shopinbit_shipping_view.dart
index 6bb0f6a..4ad2fe4 100644
--- a/lib/pages/shopinbit/shopinbit_shipping_view.dart
+++ b/lib/pages/shopinbit/shopinbit_shipping_view.dart
@@ -494,9 +494,9 @@ class _ShopInBitShippingViewState extends State<ShopInBitShippingView> {
}
});
},
- activeColor: Theme.of(context)
- .extension<StackColors>()!
- .accentColorBlue,
+ activeColor: Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorBlue,
),
),
const SizedBox(width: 12),
@@ -572,12 +572,13 @@ class _ShopInBitShippingViewState extends State<ShopInBitShippingView> {
child: Text(
c['label'] as String,
style: isDesktop
- ? STextStyles.desktopTextExtraSmall(context)
- .copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldActiveText,
- )
+ ? STextStyles.desktopTextExtraSmall(
+ context,
+ ).copyWith(
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .textFieldActiveText,
+ )
: STextStyles.w500_14(context),
),
),
@@ -608,9 +609,9 @@ class _ShopInBitShippingViewState extends State<ShopInBitShippingView> {
isExpanded: true,
buttonStyleData: ButtonStyleData(
decoration: BoxDecoration(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldDefaultBG,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textFieldDefaultBG,
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
@@ -634,9 +635,9 @@ class _ShopInBitShippingViewState extends State<ShopInBitShippingView> {
elevation: 0,
maxHeight: 300,
decoration: BoxDecoration(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldDefaultBG,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textFieldDefaultBG,
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
diff --git a/lib/pages/shopinbit/shopinbit_step_2.dart b/lib/pages/shopinbit/shopinbit_step_2.dart
index 5dfef58..6fa7fe1 100644
--- a/lib/pages/shopinbit/shopinbit_step_2.dart
+++ b/lib/pages/shopinbit/shopinbit_step_2.dart
@@ -55,8 +55,7 @@ class _ShopInBitStep2State extends State<ShopInBitStep2> {
void _continue() {
widget.model.category = _selected;
- final skipGuidelines =
- ShopInBitService.instance.loadGuidelinesAccepted();
+ final skipGuidelines = ShopInBitService.instance.loadGuidelinesAccepted();
if (Util.isDesktop) {
Navigator.of(context, rootNavigator: true).pop();
@@ -69,15 +68,13 @@ class _ShopInBitStep2State extends State<ShopInBitStep2> {
if (skipGuidelines) {
// Returning user — skip guidelines.
widget.model.guidelinesAccepted = true;
- Navigator.of(context).pushNamed(
- ShopInBitStep4.routeName,
- arguments: widget.model,
- );
+ Navigator.of(
+ context,
+ ).pushNamed(ShopInBitStep4.routeName, arguments: widget.model);
} else {
- Navigator.of(context).pushNamed(
- ShopInBitStep3.routeName,
- arguments: widget.model,
- );
+ Navigator.of(
+ context,
+ ).pushNamed(ShopInBitStep3.routeName, arguments: widget.model);
}
}
}
@@ -111,19 +108,16 @@ class _ShopInBitStep2State extends State<ShopInBitStep2> {
height: isDesktop ? 48 : 40,
decoration: BoxDecoration(
shape: BoxShape.circle,
- color: Theme.of(context)
- .extension<StackColors>()!
- .textDark
- .withOpacity(0.1),
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textDark.withOpacity(0.1),
),
alignment: Alignment.center,
child: SvgPicture.asset(
iconAsset,
width: isDesktop ? 24 : 20,
height: isDesktop ? 24 : 20,
- color: Theme.of(context)
- .extension<StackColors>()!
- .textDark,
+ color: Theme.of(context).extension<StackColors>()!.textDark,
),
),
SizedBox(width: isDesktop ? 16 : 12),
@@ -154,9 +148,7 @@ class _ShopInBitStep2State extends State<ShopInBitStep2> {
if (isSelected)
Icon(
Icons.check_circle,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark,
+ color: Theme.of(context).extension<StackColors>()!.textDark,
size: isDesktop ? 24 : 20,
),
],
@@ -241,10 +233,7 @@ class _ShopInBitStep2State extends State<ShopInBitStep2> {
iconSize: 23,
onPressed: _popBack,
),
- Text(
- "ShopinBit",
- style: STextStyles.desktopH3(context),
- ),
+ Text("ShopinBit", style: STextStyles.desktopH3(context)),
],
),
const DesktopDialogCloseButton(),
@@ -273,12 +262,11 @@ class _ShopInBitStep2State extends State<ShopInBitStep2> {
}
},
child: Scaffold(
- backgroundColor:
- Theme.of(context).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(
+ context,
+ ).extension<StackColors>()!.background,
appBar: AppBar(
- leading: AppBarBackButton(
- onPressed: _popBack,
- ),
+ leading: AppBarBackButton(onPressed: _popBack),
title: Text("ShopinBit", style: STextStyles.navBarTitle(context)),
),
body: SafeArea(
diff --git a/lib/pages/shopinbit/shopinbit_step_3.dart b/lib/pages/shopinbit/shopinbit_step_3.dart
index 47db40d..21f7b14 100644
--- a/lib/pages/shopinbit/shopinbit_step_3.dart
+++ b/lib/pages/shopinbit/shopinbit_step_3.dart
@@ -139,11 +139,10 @@ class _ShopInBitStep3State extends State<ShopInBitStep3> {
child: Text(
_guidelinesText(),
style: isDesktop
- ? STextStyles.desktopTextExtraExtraSmall(context)
- .copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textDark,
+ ? STextStyles.desktopTextExtraExtraSmall(context).copyWith(
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textDark,
)
: STextStyles.itemSubtitle12(context),
),
@@ -151,19 +150,20 @@ class _ShopInBitStep3State extends State<ShopInBitStep3> {
),
),
CheckboxListTile(
- value: _agreed,
- onChanged: (v) => setState(() => _agreed = v ?? false),
- title: Text(
- "I have read and agree to the Service Guidelines",
- style: isDesktop
- ? STextStyles.desktopTextExtraExtraSmall(context)
- : STextStyles.itemSubtitle12(context),
- ),
- controlAffinity: ListTileControlAffinity.leading,
- contentPadding: EdgeInsets.zero,
- activeColor:
- Theme.of(context).extension<StackColors>()!.accentColorBlue,
+ value: _agreed,
+ onChanged: (v) => setState(() => _agreed = v ?? false),
+ title: Text(
+ "I have read and agree to the Service Guidelines",
+ style: isDesktop
+ ? STextStyles.desktopTextExtraExtraSmall(context)
+ : STextStyles.itemSubtitle12(context),
),
+ controlAffinity: ListTileControlAffinity.leading,
+ contentPadding: EdgeInsets.zero,
+ activeColor: Theme.of(
+ context,
+ ).extension<StackColors>()!.accentColorBlue,
+ ),
SizedBox(height: isDesktop ? 24 : 16),
PrimaryButton(
label: "Next",
@@ -189,10 +189,7 @@ class _ShopInBitStep3State extends State<ShopInBitStep3> {
iconSize: 23,
onPressed: _popBack,
),
- Text(
- "ShopinBit",
- style: STextStyles.desktopH3(context),
- ),
+ Text("ShopinBit", style: STextStyles.desktopH3(context)),
],
),
const DesktopDialogCloseButton(),
diff --git a/lib/pages/shopinbit/shopinbit_step_4.dart b/lib/pages/shopinbit/shopinbit_step_4.dart
index 2288aed..14bbede 100644
--- a/lib/pages/shopinbit/shopinbit_step_4.dart
+++ b/lib/pages/shopinbit/shopinbit_step_4.dart
@@ -239,15 +239,14 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
_selectedCountryIso != null;
}
if (cat == ShopInBitCategory.travel) {
- final travelBudgetVal =
- int.tryParse(_travelBudgetController.text.trim());
+ final travelBudgetVal = int.tryParse(_travelBudgetController.text.trim());
final hasValidDates = _selectedDateMode == "Flexible dates"
? (_selectedYear != null &&
- _selectedMonthSeason != null &&
- _tripLengthController.text.trim().isNotEmpty)
+ _selectedMonthSeason != null &&
+ _tripLengthController.text.trim().isNotEmpty)
: (_selectedDateMode == "Exact dates" &&
- _departureDateController.text.trim().isNotEmpty &&
- _returnDateController.text.trim().isNotEmpty);
+ _departureDateController.text.trim().isNotEmpty &&
+ _returnDateController.text.trim().isNotEmpty);
return !_submitting &&
_privacyAccepted &&
_selectedArrangement != null &&
@@ -464,8 +463,9 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
// encodes as Latin-1, corrupting the JSON body on mobile.
final countryIso = _selectedCountryIso!;
if (widget.model.category == ShopInBitCategory.concierge) {
- final budgetText =
- _noLimit ? "No limit" : "${_budgetController.text.trim()} EUR";
+ final budgetText = _noLimit
+ ? "No limit"
+ : "${_budgetController.text.trim()} EUR";
widget.model.requestDescription =
"What to purchase: ${_whatToPurchaseController.text.trim()}\n"
"Condition: $_selectedCondition\n"
@@ -480,7 +480,6 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
"Budget: ${_carBudgetController.text.trim()} EUR\n"
"Delivery country: $countryIso";
} else if (widget.model.category == ShopInBitCategory.travel) {
-
final parts = <String>[
"Arrangement: $_selectedArrangement",
"Departure: ${_departureCityController.text.trim()}, "
@@ -490,22 +489,23 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
if (_needsRecommendations) {
parts.add("Destinations: Recommendations requested");
} else {
- parts.add(
- "Destinations: ${_destinationsController.text.trim()}");
+ parts.add("Destinations: ${_destinationsController.text.trim()}");
}
if (_selectedDateMode == "Exact dates") {
final flex =
_selectedFlexibility != null && _selectedFlexibility != "Exact"
- ? " ($_selectedFlexibility)"
- : "";
+ ? " ($_selectedFlexibility)"
+ : "";
parts.add(
- "Dates: ${_departureDateController.text.trim()} - "
- "${_returnDateController.text.trim()}$flex");
+ "Dates: ${_departureDateController.text.trim()} - "
+ "${_returnDateController.text.trim()}$flex",
+ );
} else if (_selectedDateMode == "Flexible dates") {
parts.add(
- "Dates: $_selectedMonthSeason $_selectedYear, "
- "${_tripLengthController.text.trim()} nights");
+ "Dates: $_selectedMonthSeason $_selectedYear, "
+ "${_tripLengthController.text.trim()} nights",
+ );
}
final travelers = <String>[];
@@ -635,9 +635,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
// Shared widgets.
Widget _buildCountryPicker(bool isDesktop) {
return ClipRRect(
- borderRadius: BorderRadius.circular(
- Constants.size.circularBorderRadius,
- ),
+ borderRadius: BorderRadius.circular(Constants.size.circularBorderRadius),
child: DropdownButtonHideUnderline(
child: DropdownButton2<String>(
value: _selectedCountryIso,
@@ -648,9 +646,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
child: Text(
c['label'] as String,
style: isDesktop
- ? STextStyles.desktopTextExtraSmall(
- context,
- ).copyWith(
+ ? STextStyles.desktopTextExtraSmall(context).copyWith(
color: Theme.of(
context,
).extension<StackColors>()!.textFieldActiveText,
@@ -676,9 +672,9 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
_loadingCountries ? "Loading countries..." : "Delivery country",
style: isDesktop
? STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldDefaultSearchIconLeft,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textFieldDefaultSearchIconLeft,
)
: STextStyles.fieldLabel(context),
),
@@ -740,9 +736,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
.where((c) => c['iso'] == item.value)
.map((c) => c['label'] as String)
.firstOrNull;
- return label?.toLowerCase().contains(
- searchValue.toLowerCase(),
- ) ??
+ return label?.toLowerCase().contains(searchValue.toLowerCase()) ??
false;
},
),
@@ -836,7 +830,8 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
// Per-category form builders.
Widget _buildConciergeContent(bool isDesktop) {
- final whatToPurchaseError = _whatToPurchaseTouched &&
+ final whatToPurchaseError =
+ _whatToPurchaseTouched &&
_whatToPurchaseController.text.trim().length < 10
? "Minimum 10 characters"
: null;
@@ -924,9 +919,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
).copyWith(
color: Theme.of(
context,
- )
- .extension<StackColors>()!
- .textFieldActiveText,
+ ).extension<StackColors>()!.textFieldActiveText,
)
: STextStyles.w500_14(context),
),
@@ -1079,24 +1072,24 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
}
Widget _buildCarContent(bool isDesktop) {
- final brandError =
- _brandTouched && _brandController.text.trim().length < 3
- ? "Minimum 3 characters"
- : null;
+ final brandError = _brandTouched && _brandController.text.trim().length < 3
+ ? "Minimum 3 characters"
+ : null;
- final modelError =
- _modelTouched && _modelController.text.trim().length < 3
- ? "Minimum 3 characters"
- : null;
+ final modelError = _modelTouched && _modelController.text.trim().length < 3
+ ? "Minimum 3 characters"
+ : null;
- final carDescriptionError = _carDescriptionTouched &&
+ final carDescriptionError =
+ _carDescriptionTouched &&
_carDescriptionController.text.trim().length < 3
? "Minimum 3 characters"
: null;
final carBudgetText = _carBudgetController.text.trim();
final carBudgetVal = int.tryParse(carBudgetText);
- final carBudgetError = _carBudgetTouched &&
+ final carBudgetError =
+ _carBudgetTouched &&
(carBudgetText.isEmpty ||
carBudgetVal == null ||
carBudgetVal < 20000)
@@ -1216,9 +1209,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
).copyWith(
color: Theme.of(
context,
- )
- .extension<StackColors>()!
- .textFieldActiveText,
+ ).extension<StackColors>()!.textFieldActiveText,
)
: STextStyles.w500_14(context),
),
@@ -1376,12 +1367,12 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
TextSpan(
text: "Research fee: ",
style: isDesktop
- ? STextStyles.desktopTextSmall(context).copyWith(
- fontWeight: FontWeight.bold,
- )
- : STextStyles.w500_14(context).copyWith(
- fontWeight: FontWeight.bold,
- ),
+ ? STextStyles.desktopTextSmall(
+ context,
+ ).copyWith(fontWeight: FontWeight.bold)
+ : STextStyles.w500_14(
+ context,
+ ).copyWith(fontWeight: FontWeight.bold),
),
const TextSpan(
text:
@@ -1534,9 +1525,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
required bool isDesktop,
}) {
return ClipRRect(
- borderRadius: BorderRadius.circular(
- Constants.size.circularBorderRadius,
- ),
+ borderRadius: BorderRadius.circular(Constants.size.circularBorderRadius),
child: DropdownButtonHideUnderline(
child: DropdownButton2<String>(
value: value,
@@ -1547,14 +1536,10 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
child: Text(
c,
style: isDesktop
- ? STextStyles.desktopTextExtraSmall(
- context,
- ).copyWith(
+ ? STextStyles.desktopTextExtraSmall(context).copyWith(
color: Theme.of(
context,
- )
- .extension<StackColors>()!
- .textFieldActiveText,
+ ).extension<StackColors>()!.textFieldActiveText,
)
: STextStyles.w500_14(context),
),
@@ -1566,9 +1551,9 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
hint,
style: isDesktop
? STextStyles.desktopTextExtraSmall(context).copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textFieldDefaultSearchIconLeft,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textFieldDefaultSearchIconLeft,
)
: STextStyles.fieldLabel(context),
),
@@ -1634,9 +1619,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
),
const Spacer(),
InkWell(
- onTap: value > min
- ? () => onChanged(value - 1)
- : null,
+ onTap: value > min ? () => onChanged(value - 1) : null,
child: Container(
width: 32,
height: 32,
@@ -1672,9 +1655,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
),
const SizedBox(width: 16),
InkWell(
- onTap: value < max
- ? () => onChanged(value + 1)
- : null,
+ onTap: value < max ? () => onChanged(value + 1) : null,
child: Container(
width: 32,
height: 32,
@@ -1701,40 +1682,43 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
}
Widget _buildTravelContent(bool isDesktop) {
- final departureCountryError = _departureCountryTouched &&
+ final departureCountryError =
+ _departureCountryTouched &&
_departureCountryController.text.trim().isEmpty
? "Required"
: null;
- final departureCityError = _departureCityTouched &&
- _departureCityController.text.trim().isEmpty
+ final departureCityError =
+ _departureCityTouched && _departureCityController.text.trim().isEmpty
? "Required"
: null;
- final destinationsError = _destinationsTouched &&
+ final destinationsError =
+ _destinationsTouched &&
_destinationsController.text.trim().isEmpty &&
!_needsRecommendations
? "Required (or check 'I need recommendations')"
: null;
- final departureDateError = _departureDateTouched &&
- _departureDateController.text.trim().isEmpty
+ final departureDateError =
+ _departureDateTouched && _departureDateController.text.trim().isEmpty
? "Required"
: null;
- final returnDateError = _returnDateTouched &&
- _returnDateController.text.trim().isEmpty
+ final returnDateError =
+ _returnDateTouched && _returnDateController.text.trim().isEmpty
? "Required"
: null;
- final tripLengthError = _tripLengthTouched &&
- _tripLengthController.text.trim().isEmpty
+ final tripLengthError =
+ _tripLengthTouched && _tripLengthController.text.trim().isEmpty
? "Required"
: null;
final travelBudgetText = _travelBudgetController.text.trim();
final travelBudgetVal = int.tryParse(travelBudgetText);
- final travelBudgetError = _travelBudgetTouched &&
+ final travelBudgetError =
+ _travelBudgetTouched &&
(travelBudgetText.isEmpty ||
travelBudgetVal == null ||
travelBudgetVal < 1000)
@@ -2013,8 +1997,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
"+ 1 week",
],
hint: "Flexibility",
- onChanged: (val) =>
- setState(() => _selectedFlexibility = val),
+ onChanged: (val) => setState(() => _selectedFlexibility = val),
isDesktop: isDesktop,
),
],
@@ -2022,13 +2005,9 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
if (_selectedDateMode == "Flexible dates") ...[
_buildTravelDropdown(
value: _selectedYear,
- items: [
- "${DateTime.now().year}",
- "${DateTime.now().year + 1}",
- ],
+ items: ["${DateTime.now().year}", "${DateTime.now().year + 1}"],
hint: "Year",
- onChanged: (val) =>
- setState(() => _selectedYear = val),
+ onChanged: (val) => setState(() => _selectedYear = val),
isDesktop: isDesktop,
),
SizedBox(height: isDesktop ? 16 : 12),
@@ -2053,8 +2032,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
"Winter (Dec-Feb)",
],
hint: "Month or season",
- onChanged: (val) =>
- setState(() => _selectedMonthSeason = val),
+ onChanged: (val) => setState(() => _selectedMonthSeason = val),
isDesktop: isDesktop,
),
SizedBox(height: isDesktop ? 16 : 12),
@@ -2223,10 +2201,7 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
iconSize: 23,
onPressed: _popBack,
),
- Text(
- "ShopinBit",
- style: STextStyles.desktopH3(context),
- ),
+ Text("ShopinBit", style: STextStyles.desktopH3(context)),
],
),
const DesktopDialogCloseButton(),
@@ -2255,12 +2230,11 @@ class _ShopInBitStep4State extends State<ShopInBitStep4> {
}
},
child: Scaffold(
- backgroundColor:
- Theme.of(context).extension<StackColors>()!.background,
+ backgroundColor: Theme.of(
+ context,
+ ).extension<StackColors>()!.background,
appBar: AppBar(
- leading: AppBarBackButton(
- onPressed: _popBack,
- ),
+ leading: AppBarBackButton(onPressed: _popBack),
title: Text("ShopinBit", style: STextStyles.navBarTitle(context)),
),
body: SafeArea(
diff --git a/lib/pages/shopinbit/shopinbit_ticket_detail.dart b/lib/pages/shopinbit/shopinbit_ticket_detail.dart
index 76299d1..7e15511 100644
--- a/lib/pages/shopinbit/shopinbit_ticket_detail.dart
+++ b/lib/pages/shopinbit/shopinbit_ticket_detail.dart
@@ -461,7 +461,8 @@ class _ShopInBitTicketDetailState extends State<ShopInBitTicketDetail> {
),
);
- final requestDetailsSection = _isCarResearch && model.requestDescription.isNotEmpty
+ final requestDetailsSection =
+ _isCarResearch && model.requestDescription.isNotEmpty
? Padding(
padding: EdgeInsets.only(bottom: isDesktop ? 12 : 8),
child: RoundedWhiteContainer(
diff --git a/lib/pages/wallet_view/wallet_view.dart b/lib/pages/wallet_view/wallet_view.dart
index 9b614f0..12affd4 100644
--- a/lib/pages/wallet_view/wallet_view.dart
+++ b/lib/pages/wallet_view/wallet_view.dart
@@ -1357,9 +1357,9 @@ class _WalletViewState extends ConsumerState<WalletView> {
).extension<StackColors>()!.bottomNavIconIcon,
),
onTap: () {
- Navigator.of(context).pushNamed(
- ServicesView.routeName,
- );
+ Navigator.of(
+ context,
+ ).pushNamed(ServicesView.routeName);
},
),
WalletNavigationBarItemData(
@@ -1373,9 +1373,9 @@ class _WalletViewState extends ConsumerState<WalletView> {
).extension<StackColors>()!.bottomNavIconIcon,
),
onTap: () {
- Navigator.of(context).pushNamed(
- GiftCardsView.routeName,
- );
+ Navigator.of(
+ context,
+ ).pushNamed(GiftCardsView.routeName);
},
),
],
diff --git a/lib/pages_desktop_specific/more_view/sub_widgets/desktop_services_view.dart b/lib/pages_desktop_specific/more_view/sub_widgets/desktop_services_view.dart
index 4ecc0e9..dca35f5 100644
--- a/lib/pages_desktop_specific/more_view/sub_widgets/desktop_services_view.dart
+++ b/lib/pages_desktop_specific/more_view/sub_widgets/desktop_services_view.dart
@@ -80,18 +80,16 @@ class _DesktopServicesViewState extends ConsumerState<DesktopServicesView> {
height: 11,
color:
ref
- .watch(
- selectedServicesMenuItemStateProvider
- .state,
- )
- .state ==
- i
- ? Theme.of(
- context,
- )
- .extension<StackColors>()!
- .accentColorBlue
- : Colors.transparent,
+ .watch(
+ selectedServicesMenuItemStateProvider
+ .state,
+ )
+ .state ==
+ i
+ ? Theme.of(context)
+ .extension<StackColors>()!
+ .accentColorBlue
+ : Colors.transparent,
),
label: _labels[i],
value: i,
diff --git a/lib/pages_desktop_specific/more_view/sub_widgets/desktop_shopinbit_view.dart b/lib/pages_desktop_specific/more_view/sub_widgets/desktop_shopinbit_view.dart
index 54c72a0..b30ba6b 100644
--- a/lib/pages_desktop_specific/more_view/sub_widgets/desktop_shopinbit_view.dart
+++ b/lib/pages_desktop_specific/more_view/sub_widgets/desktop_shopinbit_view.dart
@@ -156,8 +156,7 @@ class _DesktopServicesViewState extends ConsumerState<DesktopShopInBitView> {
await showDialog<void>(
context: context,
barrierDismissible: false,
- builder: (_) =>
- ShopInBitStep1(model: model),
+ builder: (_) => ShopInBitStep1(model: model),
);
if (mounted) setState(() {});
},
@@ -349,9 +348,7 @@ class _ShopInBitDesktopSetupDialogState
super.initState();
_keyFuture = ShopInBitService.instance.ensureCustomerKey();
final existingName = ShopInBitService.instance.loadDisplayName();
- _nameController = TextEditingController(
- text: existingName ?? '',
- );
+ _nameController = TextEditingController(text: existingName ?? '');
_nameFocusNode = FocusNode();
_nameFocusNode.addListener(() {
@@ -404,34 +401,31 @@ class _ShopInBitDesktopSetupDialogState
children: [
Text(
"Your Customer Key",
- style: STextStyles.desktopTextSmall(context).copyWith(
- fontWeight: FontWeight.bold,
- ),
+ style: STextStyles.desktopTextSmall(
+ context,
+ ).copyWith(fontWeight: FontWeight.bold),
),
const SizedBox(height: 8),
Text(
"This is your ShopinBit customer key: save it "
"somewhere safe, you'll need it to recover "
"your ShopinBit account on a new device.",
- style:
- STextStyles.desktopTextExtraExtraSmall(context),
+ style: STextStyles.desktopTextExtraExtraSmall(context),
),
const SizedBox(height: 12),
FutureBuilder<String>(
future: _keyFuture,
builder: (context, snapshot) {
if (snapshot.connectionState != ConnectionState.done) {
- return const Center(
- child: CircularProgressIndicator(),
- );
+ return const Center(child: CircularProgressIndicator());
}
if (snapshot.hasError) {
return Text(
"Failed to generate key. Please try again.",
style: STextStyles.desktopTextSmall(context).copyWith(
- color: Theme.of(context)
- .extension<StackColors>()!
- .textError,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textError,
),
);
}
@@ -442,18 +436,15 @@ class _ShopInBitDesktopSetupDialogState
Expanded(
child: SelectableText(
key,
- style:
- STextStyles.desktopTextExtraExtraSmall(
- context,
- ),
+ style: STextStyles.desktopTextExtraExtraSmall(
+ context,
+ ),
),
),
IconButton(
icon: const Icon(Icons.copy, size: 20),
onPressed: () {
- Clipboard.setData(
- ClipboardData(text: key),
- );
+ Clipboard.setData(ClipboardData(text: key));
showFloatingFlushBar(
type: FlushBarType.info,
message: "Copied to clipboard!",
@@ -469,9 +460,9 @@ class _ShopInBitDesktopSetupDialogState
const SizedBox(height: 24),
Text(
"Display Name",
- style: STextStyles.desktopTextSmall(context).copyWith(
- fontWeight: FontWeight.bold,
- ),
+ style: STextStyles.desktopTextSmall(
+ context,
+ ).copyWith(fontWeight: FontWeight.bold),
),
const SizedBox(height: 8),
TextField(
@@ -479,9 +470,7 @@ class _ShopInBitDesktopSetupDialogState
focusNode: _nameFocusNode,
onChanged: (_) => setState(() {}),
style: STextStyles.desktopTextSmall(context),
- decoration: const InputDecoration(
- hintText: "Display name",
- ),
+ decoration: const InputDecoration(hintText: "Display name"),
),
const Spacer(),
PrimaryButton(
diff --git a/lib/pages_desktop_specific/settings/settings_menu/shopinbit_settings.dart b/lib/pages_desktop_specific/settings/settings_menu/shopinbit_settings.dart
index f311c9e..146243c 100644
--- a/lib/pages_desktop_specific/settings/settings_menu/shopinbit_settings.dart
+++ b/lib/pages_desktop_specific/settings/settings_menu/shopinbit_settings.dart
@@ -347,195 +347,203 @@ class _ShopInBitDesktopSettingsState
Widget build(BuildContext context) {
return SingleChildScrollView(
child: Column(
- children: [
- Padding(
- padding: const EdgeInsets.only(right: 30),
- child: RoundedWhiteContainer(
- radiusMultiplier: 2,
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: SvgPicture.asset(
- Assets.svg.key,
- width: 48,
- height: 48,
+ children: [
+ Padding(
+ padding: const EdgeInsets.only(right: 30),
+ child: RoundedWhiteContainer(
+ radiusMultiplier: 2,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: SvgPicture.asset(
+ Assets.svg.key,
+ width: 48,
+ height: 48,
+ ),
),
- ),
- Padding(
- padding: const EdgeInsets.all(10),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- "Customer Key",
- style: STextStyles.desktopTextSmall(context),
- ),
- const SizedBox(height: 16),
- Text(
- "Your customer key identifies you to ShopinBit. "
- "Save it to restore access to your conversations "
- "on another device. If you change it, you will "
- "lose access to existing conversations.",
- style: STextStyles.desktopTextExtraExtraSmall(context),
- ),
- const SizedBox(height: 20),
- if (_currentKey != null) ...[
+ Padding(
+ padding: const EdgeInsets.all(10),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
Text(
- "Current key",
- style: STextStyles.desktopTextExtraExtraSmall(context)
- .copyWith(
- color: Theme.of(
+ "Customer Key",
+ style: STextStyles.desktopTextSmall(context),
+ ),
+ const SizedBox(height: 16),
+ Text(
+ "Your customer key identifies you to ShopinBit. "
+ "Save it to restore access to your conversations "
+ "on another device. If you change it, you will "
+ "lose access to existing conversations.",
+ style: STextStyles.desktopTextExtraExtraSmall(
+ context,
+ ),
+ ),
+ const SizedBox(height: 20),
+ if (_currentKey != null) ...[
+ Text(
+ "Current key",
+ style:
+ STextStyles.desktopTextExtraExtraSmall(
context,
- ).extension<StackColors>()!.textDark3,
+ ).copyWith(
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textDark3,
+ ),
+ ),
+ const SizedBox(height: 8),
+ Row(
+ children: [
+ SelectableText(
+ _currentKey!,
+ style: STextStyles.desktopTextSmall(context),
),
- ),
- const SizedBox(height: 8),
- Row(
- children: [
- SelectableText(
- _currentKey!,
- style: STextStyles.desktopTextSmall(context),
- ),
- const SizedBox(width: 12),
- GestureDetector(
- onTap: () async {
- await Clipboard.setData(
- ClipboardData(text: _currentKey!),
- );
- if (mounted) {
- unawaited(
- showFloatingFlushBar(
- type: FlushBarType.info,
- message: "Key copied to clipboard",
- context: context,
- ),
+ const SizedBox(width: 12),
+ GestureDetector(
+ onTap: () async {
+ await Clipboard.setData(
+ ClipboardData(text: _currentKey!),
);
- }
- },
- child: SvgPicture.asset(
- Assets.svg.copy,
- width: 20,
- height: 20,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.textDark3,
+ if (mounted) {
+ unawaited(
+ showFloatingFlushBar(
+ type: FlushBarType.info,
+ message: "Key copied to clipboard",
+ context: context,
+ ),
+ );
+ }
+ },
+ child: SvgPicture.asset(
+ Assets.svg.copy,
+ width: 20,
+ height: 20,
+ color: Theme.of(
+ context,
+ ).extension<StackColors>()!.textDark3,
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 20),
+ ] else
+ Padding(
+ padding: const EdgeInsets.only(bottom: 20),
+ child: Text(
+ "No key set",
+ style: STextStyles.desktopTextExtraExtraSmall(
+ context,
),
),
- ],
+ ),
+ PrimaryButton(
+ width: 210,
+ buttonHeight: ButtonHeight.m,
+ enabled: !_loading,
+ label: _currentKey == null
+ ? "Generate key"
+ : "Generate new key",
+ onPressed: _generate,
),
const SizedBox(height: 20),
- ] else
- Padding(
- padding: const EdgeInsets.only(bottom: 20),
- child: Text(
- "No key set",
- style: STextStyles.desktopTextExtraExtraSmall(
- context,
- ),
- ),
+ Text(
+ "Restore key",
+ style: STextStyles.desktopTextSmall(context),
),
- PrimaryButton(
- width: 210,
- buttonHeight: ButtonHeight.m,
- enabled: !_loading,
- label: _currentKey == null
- ? "Generate key"
- : "Generate new key",
- onPressed: _generate,
- ),
- const SizedBox(height: 20),
- Text(
- "Restore key",
- style: STextStyles.desktopTextSmall(context),
- ),
- const SizedBox(height: 8),
- Text(
- "Enter a previously saved customer key to "
- "restore access to your ShopinBit "
- "conversations.",
- style: STextStyles.desktopTextExtraExtraSmall(context),
- ),
- const SizedBox(height: 16),
- SizedBox(
- width: 512,
- child: ClipRRect(
- borderRadius: BorderRadius.circular(
- Constants.size.circularBorderRadius,
+ const SizedBox(height: 8),
+ Text(
+ "Enter a previously saved customer key to "
+ "restore access to your ShopinBit "
+ "conversations.",
+ style: STextStyles.desktopTextExtraExtraSmall(
+ context,
),
- child: TextField(
- controller: _manualKeyController,
- focusNode: _manualKeyFocusNode,
- style: STextStyles.field(context),
- decoration: standardInputDecoration(
- "Enter customer key",
- _manualKeyFocusNode,
- context,
+ ),
+ const SizedBox(height: 16),
+ SizedBox(
+ width: 512,
+ child: ClipRRect(
+ borderRadius: BorderRadius.circular(
+ Constants.size.circularBorderRadius,
+ ),
+ child: TextField(
+ controller: _manualKeyController,
+ focusNode: _manualKeyFocusNode,
+ style: STextStyles.field(context),
+ decoration: standardInputDecoration(
+ "Enter customer key",
+ _manualKeyFocusNode,
+ context,
+ ),
+ onChanged: (_) => setState(() {}),
),
- onChanged: (_) => setState(() {}),
),
),
- ),
- const SizedBox(height: 16),
- PrimaryButton(
- width: 210,
- buttonHeight: ButtonHeight.m,
- enabled:
- !_loading &&
- _manualKeyController.text.trim().isNotEmpty,
- label: "Set key",
- onPressed: _setManualKey,
- ),
- const SizedBox(height: 20),
- Text(
- "Display Name",
- style: STextStyles.desktopTextSmall(context),
- ),
- const SizedBox(height: 8),
- Text(
- "The name ShopinBit staff will see "
- "when communicating with you.",
- style: STextStyles.desktopTextExtraExtraSmall(context),
- ),
- const SizedBox(height: 16),
- SizedBox(
- width: 512,
- child: ClipRRect(
- borderRadius: BorderRadius.circular(
- Constants.size.circularBorderRadius,
+ const SizedBox(height: 16),
+ PrimaryButton(
+ width: 210,
+ buttonHeight: ButtonHeight.m,
+ enabled:
+ !_loading &&
+ _manualKeyController.text.trim().isNotEmpty,
+ label: "Set key",
+ onPressed: _setManualKey,
+ ),
+ const SizedBox(height: 20),
+ Text(
+ "Display Name",
+ style: STextStyles.desktopTextSmall(context),
+ ),
+ const SizedBox(height: 8),
+ Text(
+ "The name ShopinBit staff will see "
+ "when communicating with you.",
+ style: STextStyles.desktopTextExtraExtraSmall(
+ context,
),
- child: TextField(
- controller: _displayNameController,
- focusNode: _displayNameFocusNode,
- style: STextStyles.field(context),
- decoration: standardInputDecoration(
- "Display name",
- _displayNameFocusNode,
- context,
+ ),
+ const SizedBox(height: 16),
+ SizedBox(
+ width: 512,
+ child: ClipRRect(
+ borderRadius: BorderRadius.circular(
+ Constants.size.circularBorderRadius,
+ ),
+ child: TextField(
+ controller: _displayNameController,
+ focusNode: _displayNameFocusNode,
+ style: STextStyles.field(context),
+ decoration: standardInputDecoration(
+ "Display name",
+ _displayNameFocusNode,
+ context,
+ ),
+ onChanged: (_) => setState(() {}),
),
- onChanged: (_) => setState(() {}),
),
),
- ),
- const SizedBox(height: 16),
- PrimaryButton(
- width: 210,
- buttonHeight: ButtonHeight.m,
- enabled:
- !_savingName &&
- _displayNameController.text.trim().isNotEmpty,
- label: "Save",
- onPressed: _saveDisplayName,
- ),
- ],
+ const SizedBox(height: 16),
+ PrimaryButton(
+ width: 210,
+ buttonHeight: ButtonHeight.m,
+ enabled:
+ !_savingName &&
+ _displayNameController.text.trim().isNotEmpty,
+ label: "Save",
+ onPressed: _saveDisplayName,
+ ),
+ ],
+ ),
),
- ),
- ],
+ ],
+ ),
),
),
- ),
- ],
+ ],
),
);
}
diff --git a/lib/services/shopinbit/shopinbit_service.dart b/lib/services/shopinbit/shopinbit_service.dart
index 1caa8aa..b066943 100644
--- a/lib/services/shopinbit/shopinbit_service.dart
+++ b/lib/services/shopinbit/shopinbit_service.dart
@@ -98,7 +98,7 @@ class ShopInBitService {
key: "shopInBitGuidelinesAccepted",
)
as bool? ??
- false;
+ false;
return _guidelinesAccepted!;
}
@@ -122,7 +122,7 @@ class ShopInBitService {
key: "shopInBitSetupComplete",
)
as bool? ??
- false;
+ false;
return _setupComplete!;
}
@@ -133,9 +133,7 @@ class ShopInBitService {
key: "shopInBitSetupComplete",
value: complete,
);
- Logging.instance.i(
- "ShopInBitService: setup complete set to $complete",
- );
+ Logging.instance.i("ShopInBitService: setup complete set to $complete");
}
String? loadDisplayName() {
Why 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.