What is the best way to increase the GestureDetector area?
I'd like to avoid to use a Container with custom width and height
I've a Card with this Row:
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
new IconButton(
icon: new Icon(
Icons.remove,
color: Colors.white,
),
onPressed: () => { _decreaseCounter() },
),
GestureDetector(
child: Text(
_counter.toString(),
style: new TextStyle(
color: Colors.white,
fontSize: 18.0,
fontWeight: FontWeight.bold),
),
onTap: () => _openDialog(),
),
new IconButton(
icon: new Icon(
Icons.add,
color: Colors.white,
),
onPressed: () => { _increaseCounter()},
)
when I tap on the Text it should open a dialog, but the GesutreDetector area is very small and it's very difficult to open the dialog. So what I need is to increase this detection area.