menu item gesture area increased
This commit is contained in:
parent
d053579173
commit
cb52647a35
|
|
@ -24,6 +24,8 @@ class MenuItem extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
|
child: Container(
|
||||||
|
color: Colors.transparent,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
if (icon != null) Icon(icon, size: 18, color: color),
|
if (icon != null) Icon(icon, size: 18, color: color),
|
||||||
|
|
@ -50,6 +52,7 @@ class MenuItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue