From 3531858a977a372f14a1b2282d2b4f17612a8138 Mon Sep 17 00:00:00 2001 From: Hugo Bayer Date: Wed, 29 Jan 2020 11:56:34 +0100 Subject: [PATCH] Made the whole addServer button a button --- lib/serverlist.dart | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/serverlist.dart b/lib/serverlist.dart index 0d0a49a..fe2bfed 100644 --- a/lib/serverlist.dart +++ b/lib/serverlist.dart @@ -364,21 +364,21 @@ class _ServerListState extends State { ); }); list.add( - Container( - height: 75, - width: MediaQuery.of(context).size.width, - margin: EdgeInsets.fromLTRB(0, 0, 0, 2), - padding: EdgeInsets.all(10.0), - decoration: BoxDecoration( - color: Colors.white70, - border: Border(bottom: BorderSide(color: Colors.grey, width: 2))), - child: IconButton( - icon: Icon( + GestureDetector( + onTap: _addServerForm, + child: Container( + height: 75, + width: MediaQuery.of(context).size.width, + margin: EdgeInsets.fromLTRB(0, 0, 0, 2), + padding: EdgeInsets.all(10.0), + decoration: BoxDecoration( + color: Colors.white70, + border: Border(bottom: BorderSide(color: Colors.grey, width: 2))), + child: Icon( Icons.add, size: 42, color: Colors.black, ), - onPressed: _addServerForm, ), ), ); -- 2.47.0