Skip to content

Commit 38d4c3c

Browse files
committed
fix(ui): button consistency
1 parent 28f495c commit 38d4c3c

1 file changed

Lines changed: 25 additions & 27 deletions

File tree

lib/pages_desktop_specific/services/cakepay/desktop_gift_cards_view.dart

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -98,35 +98,33 @@ class _DesktopGiftCardsViewState extends ConsumerState<DesktopGiftCardsView> {
9898
),
9999
child: Row(
100100
children: [
101-
Expanded(
102-
child: PrimaryButton(
103-
buttonHeight: ButtonHeight.m,
104-
label: "Browse Gift Cards",
105-
enabled: !_torEnabled,
106-
onPressed: () {
107-
showDialog<void>(
108-
context: context,
109-
builder: (_) => const NestedNavigatorDialog(
110-
initialRoute: CakePayVendorsView.routeName,
111-
),
112-
);
113-
},
114-
),
101+
PrimaryButton(
102+
width: 220,
103+
buttonHeight: ButtonHeight.m,
104+
label: "Browse Gift Cards",
105+
enabled: !_torEnabled,
106+
onPressed: () {
107+
showDialog<void>(
108+
context: context,
109+
builder: (_) => const NestedNavigatorDialog(
110+
initialRoute: CakePayVendorsView.routeName,
111+
),
112+
);
113+
},
115114
),
116115
const SizedBox(width: 16),
117-
Expanded(
118-
child: SecondaryButton(
119-
buttonHeight: ButtonHeight.m,
120-
label: "My Orders",
121-
onPressed: () {
122-
showDialog<void>(
123-
context: context,
124-
builder: (_) => const NestedNavigatorDialog(
125-
initialRoute: CakePayOrdersView.routeName,
126-
),
127-
);
128-
},
129-
),
116+
SecondaryButton(
117+
width: 200,
118+
buttonHeight: ButtonHeight.m,
119+
label: "My Orders",
120+
onPressed: () {
121+
showDialog<void>(
122+
context: context,
123+
builder: (_) => const NestedNavigatorDialog(
124+
initialRoute: CakePayOrdersView.routeName,
125+
),
126+
);
127+
},
130128
),
131129
],
132130
),

0 commit comments

Comments
 (0)