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