Skip to content

Commit a24936c

Browse files
committed
refactor: cleanup use-cases
1 parent eaeb4c1 commit a24936c

6 files changed

Lines changed: 0 additions & 125 deletions

File tree

lib/features/account/views/account_data_view.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter/material.dart' hide Icon;
2-
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
32

43
import '../../../data/data.dart';
54
import '../../../ui/ui.dart';
@@ -25,15 +24,6 @@ class AccountDataView extends StatelessWidget {
2524
AccountCard(
2625
name: user.name,
2726
),
28-
if (!user.isVerified)
29-
PrimaryButton(
30-
content: 'Verify Email',
31-
onPressed: onVerifyEmail,
32-
leading: Icon(
33-
FontAwesomeIcons.circleExclamation,
34-
color: AppTheme.of(context).text.inverse,
35-
),
36-
),
3727
],
3828
),
3929
);

lib/features/basket/views/basket_data_view.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:flutter/widgets.dart';
22

33
import '../../../data/data.dart';
4-
import '../../../l10n/app_localizations.dart';
54
import '../../../ui/ui.dart';
65
import '../widgets/widgets.dart';
76

@@ -53,10 +52,6 @@ class BasketDataView extends StatelessWidget {
5352
subTotal: subTotal,
5453
deliveryFees: delivery,
5554
),
56-
PrimaryButton(
57-
content: AppLocalizations.of(context)!.basketContinueToShipping,
58-
onPressed: onContinueToShipping,
59-
),
6055
],
6156
),
6257
);

lib/features/basket/views/basket_empty_view.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ class BasketEmptyView extends StatelessWidget {
2626
),
2727
),
2828
),
29-
PrimaryButton(
30-
content: AppLocalizations.of(context)!.startShopping,
31-
onPressed: onStartShopping,
32-
),
3329
],
3430
),
3531
);

lib/ui/widgets/primary_button.dart

Lines changed: 0 additions & 73 deletions
This file was deleted.

lib/ui/widgets/widgets.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ export 'icon_button.dart';
99
export 'loader.dart';
1010
export 'navigation_item.dart';
1111
export 'page_shell.dart';
12-
export 'primary_button.dart';
1312
export 'view_shell.dart';

widgetbook/lib/ui/widgets/primary_button.dart

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)