listTileCustomImage method
Implementation
Widget listTileCustomImage(
Widget leading, BuildContext context, String? title, Function() onTap) {
return Material(
child: Container(
color: Theme.of(context).colorScheme.background,
child: InkWell(
splashColor: Colors.red,
focusColor: Colors.red,
highlightColor: Colors.red,
hoverColor: Colors.red,
onTap: onTap,
child: Padding(
padding: EdgeInsets.only(
left: DUI.spacing.lateralPaddingValue,
right: DUI.spacing.lateralPaddingValue,
top: 16,
bottom: 16),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
leading,
DUI.spacing.hSpacer(),
Expanded(
child:
DUI.text.regular(context, title ?? '', maxLines: 2),
),
Icon(
Icons.chevron_right,
size: 14.0,
),
]),
)),
),
);
}