From 2238e3303b49ca848ebd0ac5156ce8f6114a33c8 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Thu, 10 Sep 2020 23:35:14 +0200 Subject: [PATCH] added lacking iconbuttons --- lib/pages/communities_tab.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pages/communities_tab.dart b/lib/pages/communities_tab.dart index 05c724d..4e117bf 100644 --- a/lib/pages/communities_tab.dart +++ b/lib/pages/communities_tab.dart @@ -68,12 +68,12 @@ class CommunitiesTab extends HookWidget { return Icon(Icons.filter_list); } - return InkWell( - onTap: () { + return IconButton( + onPressed: () { filterController.clear(); primaryFocus.unfocus(); }, - child: Icon(Icons.clear), + icon: Icon(Icons.clear), ); }(); @@ -84,7 +84,7 @@ class CommunitiesTab extends HookWidget { return Scaffold( appBar: AppBar( - actions: [Icon(Icons.style)], + actions: [IconButton(icon: Icon(Icons.style))], // TODO: should be smaller title: TextField( controller: filterController,