fix(shopinbit): desktop first run dialog
What changed, and why it matters
This commit is a routine UI tweak for the desktop version of a feature called ShopinBit. It changes the width of a first-run information dialog, removes a Cancel button, adjusts spacing, and indents bullet points. There is nothing here related to security.
No security action needed. Treat as a normal UI/UX fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies a single Flutter widget file for the desktop ShopinBit first-run dialog. Changes include: reducing dialog width from 580 to 500, removing the SecondaryButton import and Cancel button, replacing the two-button row with a single Continue button wrapped in Expanded/Spacer, increasing vertical spacing before the button row, and adding indentation to bullet-point text. No logic, network, cryptographic, or permission-related code is touched.
Changed components
lib/pages_desktop_specific/services/shopin_bit/sub_widgets/desktop_shopin_bit_first_run.dartInspect captured patch +13 / −18
diff --git a/lib/pages_desktop_specific/services/shopin_bit/sub_widgets/desktop_shopin_bit_first_run.dart b/lib/pages_desktop_specific/services/shopin_bit/sub_widgets/desktop_shopin_bit_first_run.dart
index 9f39165..ba16219 100644
--- a/lib/pages_desktop_specific/services/shopin_bit/sub_widgets/desktop_shopin_bit_first_run.dart
+++ b/lib/pages_desktop_specific/services/shopin_bit/sub_widgets/desktop_shopin_bit_first_run.dart
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
import '../../../../pages/shopinbit/shopinbit_step_2.dart';
import '../../../../utilities/text_styles.dart';
import '../../../../widgets/desktop/primary_button.dart';
-import '../../../../widgets/desktop/secondary_button.dart';
import '../../../../widgets/dialogs/s_dialog.dart';
class DesktopShopinBitFirstRun extends StatelessWidget {
@@ -15,7 +14,7 @@ class DesktopShopinBitFirstRun extends StatelessWidget {
Widget build(BuildContext context) {
return SDialog(
child: SizedBox(
- width: 580,
+ width: 500,
child: Padding(
padding: const EdgeInsets.all(32),
child: Column(
@@ -30,29 +29,25 @@ class DesktopShopinBitFirstRun extends StatelessWidget {
TextSpan(
text:
"Please note the following before proceeding:"
- "\n\n\u2022 Minimum order amount: 1,000 EUR"
- "\n\u2022 Service fee: 10% of the order total",
+ "\n\n \u2022 Minimum order amount: 1,000 EUR"
+ "\n \u2022 Service fee: 10% of the order total",
),
],
),
),
- const SizedBox(height: 32),
+ const SizedBox(height: 48),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
- SecondaryButton(
- width: 220,
- buttonHeight: ButtonHeight.l,
- label: "Cancel",
- onPressed: Navigator.of(context).pop,
- ),
- PrimaryButton(
- width: 220,
- buttonHeight: ButtonHeight.l,
- label: "Continue",
- onPressed: () => Navigator.of(
- context,
- ).pushReplacementNamed(ShopInBitStep2.routeName),
+ const Spacer(),
+ Expanded(
+ child: PrimaryButton(
+ buttonHeight: ButtonHeight.l,
+ label: "Continue",
+ onPressed: () => Navigator.of(
+ context,
+ ).pushReplacementNamed(ShopInBitStep2.routeName),
+ ),
),
],
),
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.