Skip to content

Commit

Permalink
main_drawer.dart is modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
musamairshad committed Jun 25, 2023
1 parent c37a8bd commit 0ac2c66
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/widgets/main_drawer.dart
Original file line number Diff line number Diff line change
@@ -1,7 1,9 @@
import 'package:flutter/material.dart';

class MainDrawer extends StatelessWidget {
const MainDrawer({super.key});
final void Function(String identifier) onSelectScreen;

const MainDrawer({super.key, required this.onSelectScreen});
@override
Widget build(BuildContext context) {
return Drawer(
Expand Down Expand Up @@ -52,7 54,9 @@ class MainDrawer extends StatelessWidget {
fontSize: 24.0,
),
),
onTap: () {},
onTap: () {
onSelectScreen('meals');
},
),
ListTile(
leading: Icon(
Expand All @@ -67,7 71,9 @@ class MainDrawer extends StatelessWidget {
fontSize: 24.0,
),
),
onTap: () {},
onTap: () {
onSelectScreen('filters');
},
),
],
),
Expand Down

0 comments on commit 0ac2c66

Please sign in to comment.