Made the whole addServer button a button #24

Merged
Hugo Bayer merged 1 commit from Hugo/115529012020/MadeTheWholeAddServerButtonAButton into master 2020-01-29 10:57:10 +00:00

View file

@ -364,7 +364,9 @@ class _ServerListState extends State<ServerList> {
); );
}); });
list.add( list.add(
Container( GestureDetector(
onTap: _addServerForm,
child: Container(
height: 75, height: 75,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
margin: EdgeInsets.fromLTRB(0, 0, 0, 2), margin: EdgeInsets.fromLTRB(0, 0, 0, 2),
@ -372,13 +374,11 @@ class _ServerListState extends State<ServerList> {
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white70, color: Colors.white70,
border: Border(bottom: BorderSide(color: Colors.grey, width: 2))), border: Border(bottom: BorderSide(color: Colors.grey, width: 2))),
child: IconButton( child: Icon(
icon: Icon(
Icons.add, Icons.add,
size: 42, size: 42,
color: Colors.black, color: Colors.black,
), ),
onPressed: _addServerForm,
), ),
), ),
); );