Skip to content

Commit 7304833

Browse files
committed
fix: clean up
1 parent 95f6e61 commit 7304833

2 files changed

Lines changed: 31 additions & 33 deletions

File tree

lib/pages/shopinbit/shopinbit_step_2.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ class _ShopInBitStep2State extends State<ShopInBitStep2> {
5656
widget.model.category = _selected;
5757
final skipGuidelines = ShopInBitService.instance.loadGuidelinesAccepted();
5858

59-
final skipGuidelines = ShopInBitService.instance.loadGuidelinesAccepted();
60-
6159
if (Util.isDesktop) {
6260
Navigator.of(context, rootNavigator: true).pop();
6361
if (skipGuidelines) {

lib/pages_desktop_specific/more_view/sub_widgets/desktop_shopinbit_view.dart

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -169,37 +169,37 @@ class _DesktopServicesViewState extends ConsumerState<DesktopShopInBitView> {
169169
),
170170
],
171171
),
172-
),
173-
const Spacer(),
174-
Row(
175-
mainAxisAlignment: MainAxisAlignment.center,
176-
children: [
177-
SecondaryButton(
178-
width: 200,
179-
buttonHeight: ButtonHeight.l,
180-
label: "Cancel",
181-
onPressed: () {
182-
Navigator.of(dialogContext, rootNavigator: true).pop();
183-
},
184-
),
185-
const SizedBox(width: 20),
186-
PrimaryButton(
187-
width: 200,
188-
buttonHeight: ButtonHeight.l,
189-
label: "Continue",
190-
onPressed: () async {
191-
Navigator.of(dialogContext, rootNavigator: true).pop();
192-
await showDialog<void>(
193-
context: context,
194-
barrierDismissible: false,
195-
builder: (_) => ShopInBitStep1(model: model),
196-
);
197-
if (mounted) setState(() {});
198-
},
199-
),
200-
],
201-
),
202-
],
172+
const Spacer(),
173+
Row(
174+
mainAxisAlignment: MainAxisAlignment.center,
175+
children: [
176+
SecondaryButton(
177+
width: 200,
178+
buttonHeight: ButtonHeight.l,
179+
label: "Cancel",
180+
onPressed: () {
181+
Navigator.of(dialogContext, rootNavigator: true).pop();
182+
},
183+
),
184+
const SizedBox(width: 20),
185+
PrimaryButton(
186+
width: 200,
187+
buttonHeight: ButtonHeight.l,
188+
label: "Continue",
189+
onPressed: () async {
190+
Navigator.of(dialogContext, rootNavigator: true).pop();
191+
await showDialog<void>(
192+
context: context,
193+
barrierDismissible: false,
194+
builder: (_) => ShopInBitStep1(model: model),
195+
);
196+
if (mounted) setState(() {});
197+
},
198+
),
199+
],
200+
),
201+
],
202+
),
203203
),
204204
),
205205
);

0 commit comments

Comments
 (0)