Skip to content

Commit d0d97c6

Browse files
committed
app: drawer items must span full drawer width
* Otherwise, selecting an item looks weird (the box is truncated to just around the drawer list item).
1 parent c78c941 commit d0d97c6

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

app/lib/route/wallet.dart

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,19 @@ class WalletDrawer extends StatelessWidget {
4444
child: Padding(
4545
padding: EdgeInsets.only(top: systemBarHeight),
4646
child: ListView(
47-
padding: const EdgeInsets.symmetric(horizontal: Space.s500),
47+
padding: EdgeInsets.zero,
4848
children: [
49+
// X - close
4950
DrawerListItem(
5051
icon: Icons.close_rounded,
5152
onTap: () => Scaffold.of(context).closeDrawer(),
5253
),
5354
const SizedBox(height: Space.s600),
55+
56+
// * Settings
57+
// * Backup
58+
// * Security
59+
// * Support
5460
DrawerListItem(
5561
title: "Settings",
5662
icon: Icons.settings_outlined,
@@ -72,21 +78,29 @@ class WalletDrawer extends StatelessWidget {
7278
onTap: () => debugPrint("support pressed"),
7379
),
7480
const SizedBox(height: Space.s600),
75-
OutlinedButton(
76-
style: OutlinedButton.styleFrom(
77-
backgroundColor: LxColors.background,
78-
foregroundColor: LxColors.foreground,
79-
side: const BorderSide(color: LxColors.foreground, width: 2.0),
80-
padding: const EdgeInsets.symmetric(vertical: Space.s500),
81+
82+
// < Invite Friends >
83+
Padding(
84+
padding: const EdgeInsets.symmetric(horizontal: Space.s500),
85+
child: OutlinedButton(
86+
style: OutlinedButton.styleFrom(
87+
backgroundColor: LxColors.background,
88+
foregroundColor: LxColors.foreground,
89+
side:
90+
const BorderSide(color: LxColors.foreground, width: 2.0),
91+
padding: const EdgeInsets.symmetric(vertical: Space.s500),
92+
),
93+
onPressed: () => debugPrint("invite pressed"),
94+
child: Text("Invite Friends",
95+
style: Fonts.fontUI.copyWith(
96+
fontSize: Fonts.size400,
97+
fontVariations: [Fonts.weightMedium],
98+
)),
8199
),
82-
onPressed: () => debugPrint("invite pressed"),
83-
child: Text("Invite Friends",
84-
style: Fonts.fontUI.copyWith(
85-
fontSize: Fonts.size400,
86-
fontVariations: [Fonts.weightMedium],
87-
)),
88100
),
89101
const SizedBox(height: Space.s600),
102+
103+
// app version
90104
Text("Lexe App · v1.2.345",
91105
textAlign: TextAlign.center,
92106
style: Fonts.fontUI.copyWith(
@@ -111,7 +125,7 @@ class DrawerListItem extends StatelessWidget {
111125
@override
112126
Widget build(BuildContext context) {
113127
return ListTile(
114-
contentPadding: EdgeInsets.zero,
128+
contentPadding: const EdgeInsets.symmetric(horizontal: Space.s500),
115129
horizontalTitleGap: Space.s200,
116130
visualDensity: VisualDensity.standard,
117131
dense: false,

0 commit comments

Comments
 (0)