From b262fbb97365c3482757d8e729f4f8745515e149 Mon Sep 17 00:00:00 2001 From: Jonasz Bigda Date: Sat, 9 Jan 2021 12:09:29 +0100 Subject: [PATCH] drawer --- lib/components/searchResults.dart | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/components/searchResults.dart b/lib/components/searchResults.dart index 680b691..18ecc32 100644 --- a/lib/components/searchResults.dart +++ b/lib/components/searchResults.dart @@ -114,10 +114,21 @@ class _SearchResultsState extends State { color: Colors.grey, icon: Icons.filter_alt_rounded, text: "Filtruj", - onPressed: () {}, + onPressed: () => ScaffoldState().openDrawer(), ), ], ), + drawer: Drawer( + child: ListView( + padding: EdgeInsets.zero, + children: [ + DrawerHeader( + decoration: BoxDecoration(color: Colors.grey[850]), + child: Text('Filtry'), + ) + ], + ), + ), ); } }