tweak mobile layout to make checkboxes look better
What changed, and why it matters
This commit only adjusts vertical spacing (padding) between checkboxes and buttons on mobile screens in three shopping/concierge forms. It is a cosmetic UI tweak with no security relevance.
No security action needed; treat as a routine UI/layout change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff replaces conditional SizedBox heights (isDesktop ? x : y) with fixed heights or adjusted mobile-only heights in three Dart/Flutter form widgets. No logic, validation, data handling, network, authentication, or cryptographic code is changed.
Changed components
lib/pages/shopinbit/step_4_components/shopinbit_car_research_form.dartlib/pages/shopinbit/step_4_components/shopinbit_concierge_form.dartlib/pages/shopinbit/step_4_components/shopinbit_travel_form.dartInspect captured patch +8 / −8
diff --git a/lib/pages/shopinbit/step_4_components/shopinbit_car_research_form.dart b/lib/pages/shopinbit/step_4_components/shopinbit_car_research_form.dart
index 35cd7d6..2648696 100644
--- a/lib/pages/shopinbit/step_4_components/shopinbit_car_research_form.dart
+++ b/lib/pages/shopinbit/step_4_components/shopinbit_car_research_form.dart
@@ -294,12 +294,12 @@ class _ShopInBitCarResearchFormState
onChanged: (v) => setState(() => _feeAcknowledged = v),
label: "I acknowledge the \u20AC223 research fee",
),
- SizedBox(height: isDesktop ? 24 : 16),
+ const SizedBox(height: 24),
ShopInBitPrivacyCheckbox(
value: _privacyAccepted,
onChanged: (v) => setState(() => _privacyAccepted = v),
),
- SizedBox(height: isDesktop ? 32 : 20),
+ const SizedBox(height: 32),
ShopInBitStep4SubmitButton(
submitting: _submitting,
enabled: _canContinue,
diff --git a/lib/pages/shopinbit/step_4_components/shopinbit_concierge_form.dart b/lib/pages/shopinbit/step_4_components/shopinbit_concierge_form.dart
index 968d349..1c191cd 100644
--- a/lib/pages/shopinbit/step_4_components/shopinbit_concierge_form.dart
+++ b/lib/pages/shopinbit/step_4_components/shopinbit_concierge_form.dart
@@ -177,23 +177,23 @@ class _ShopInBitConciergeFormState
errorText: budgetError,
onChanged: (_) => setState(() {}),
),
- SizedBox(height: isDesktop ? 12 : 8),
+ const SizedBox(height: 12),
ShopInBitLabeledCheckbox(
value: _noLimit,
onChanged: (v) => setState(() => _noLimit = v),
label: "No budget limit",
),
- SizedBox(height: isDesktop ? 24 : 16),
+ SizedBox(height: isDesktop ? 24 : 20),
ShopInBitCountryPicker(
selectedIso: _selectedCountryIso,
onChanged: (iso) => setState(() => _selectedCountryIso = iso),
),
- SizedBox(height: isDesktop ? 16 : 12),
+ SizedBox(height: isDesktop ? 16 : 24),
ShopInBitPrivacyCheckbox(
value: _privacyAccepted,
onChanged: (v) => setState(() => _privacyAccepted = v),
),
- SizedBox(height: isDesktop ? 32 : 20),
+ const SizedBox(height: 32),
ShopInBitStep4SubmitButton(
submitting: _submitting,
enabled: _canContinue,
diff --git a/lib/pages/shopinbit/step_4_components/shopinbit_travel_form.dart b/lib/pages/shopinbit/step_4_components/shopinbit_travel_form.dart
index 0f2e5a6..dc5c9c9 100644
--- a/lib/pages/shopinbit/step_4_components/shopinbit_travel_form.dart
+++ b/lib/pages/shopinbit/step_4_components/shopinbit_travel_form.dart
@@ -531,12 +531,12 @@ class _ShopInBitTravelFormState extends ConsumerState<ShopInBitTravelForm> {
// Travel doesn't collect delivery country: destinations are in the
// form and the API field is set to "DE" on submit.
- SizedBox(height: isDesktop ? 24 : 16),
+ const SizedBox(height: 24),
ShopInBitPrivacyCheckbox(
value: _privacyAccepted,
onChanged: (v) => setState(() => _privacyAccepted = v),
),
- SizedBox(height: isDesktop ? 32 : 20),
+ const SizedBox(height: 32),
ShopInBitStep4SubmitButton(
submitting: _submitting,
enabled: _canContinue,
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.