Skip to content

Commit

Permalink
Update start_drawer.dart
Browse files Browse the repository at this point in the history
added button to friends list in drawer
  • Loading branch information
kourosh-alasti committed Nov 19, 2023
1 parent 809e01b commit c3b0dbc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/widgets/global/start_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,19 @@ class _StartDrawerState extends State<StartDrawer> {
),
child: ListView(
children: [
TextButton(
onPressed: () {
context.go('/friends/${supabase.auth.currentUser!.id}');
},
child: Row(
children: [
const Icon(Icons.people_alt_rounded),
SizedBox(
width: MediaQuery.of(context).size.width * .05),
const Text('Friends'),
],
),
),
TextButton(
onPressed: () {
context.go('/home/settings');
Expand Down

0 comments on commit c3b0dbc

Please sign in to comment.