menu item gesture area increased
This commit is contained in:
parent
d053579173
commit
cb52647a35
|
|
@ -24,31 +24,34 @@ class MenuItem extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
child: Row(
|
child: Container(
|
||||||
children: [
|
color: Colors.transparent,
|
||||||
if (icon != null) Icon(icon, size: 18, color: color),
|
child: Row(
|
||||||
if (icon != null) const SizedBox(width: 4),
|
children: [
|
||||||
DidvanText(
|
if (icon != null) Icon(icon, size: 18, color: color),
|
||||||
title,
|
if (icon != null) const SizedBox(width: 4),
|
||||||
color: color ?? Theme.of(context).colorScheme.title,
|
|
||||||
),
|
|
||||||
const Spacer(),
|
|
||||||
if (suffix != null)
|
|
||||||
DidvanText(
|
DidvanText(
|
||||||
suffix!,
|
title,
|
||||||
style: Theme.of(context)
|
color: color ?? Theme.of(context).colorScheme.title,
|
||||||
.textTheme
|
|
||||||
.subtitle2!
|
|
||||||
.copyWith(fontWeight: FontWeight.w400),
|
|
||||||
color: Theme.of(context).colorScheme.primary,
|
|
||||||
),
|
),
|
||||||
trailing ??
|
const Spacer(),
|
||||||
Icon(
|
if (suffix != null)
|
||||||
DidvanIcons.angle_left_regular,
|
DidvanText(
|
||||||
size: 18,
|
suffix!,
|
||||||
color: color ?? Theme.of(context).colorScheme.title,
|
style: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.subtitle2!
|
||||||
|
.copyWith(fontWeight: FontWeight.w400),
|
||||||
|
color: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
],
|
trailing ??
|
||||||
|
Icon(
|
||||||
|
DidvanIcons.angle_left_regular,
|
||||||
|
size: 18,
|
||||||
|
color: color ?? Theme.of(context).colorScheme.title,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue