Added selection mode

This commit is contained in:
Juan Gilsanz Polo 2023-11-15 19:42:04 +01:00
parent 5768eac1b2
commit 9d3391aa0d
5 changed files with 411 additions and 3 deletions

View file

@ -11,6 +11,7 @@ class CustomListTile extends StatelessWidget {
final void Function()? onLongPress;
final bool? disabled;
final void Function(bool)? onHover;
final Color? color;
const CustomListTile({
Key? key,
@ -24,12 +25,13 @@ class CustomListTile extends StatelessWidget {
this.onLongPress,
this.disabled,
this.onHover,
this.color,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Material(
color: Colors.transparent,
color: color ?? Colors.transparent,
child: InkWell(
onTap: onTap,
onHover: onHover,