SmoothListTileCard.icon constructor
- Widget? icon,
- Widget? title,
- Widget? subtitle,
- GestureTapCallback? onTap,
- EdgeInsetsGeometry? margin,
- Key? key,
Displays a ListTile inside a SmoothCard with a leading Column
containing the specified icon
Implementation
SmoothListTileCard.icon({
Widget? icon,
Widget? title,
Widget? subtitle,
GestureTapCallback? onTap,
EdgeInsetsGeometry? margin,
Key? key,
}) : this(
title: title,
subtitle: subtitle,
key: key,
onTap: onTap,
// we use a Column to have the icon centered vertically
leading: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[icon ?? const Icon(Icons.edit)],
),
margin: margin,
);