Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Widget listTile({Widget leading, Widget title, Widget subtitle, GestureTapCallback onTap, contentPadding: EdgeInsetsGeometry}) {
- return Padding(
- padding: contentPadding,
- child: Material(
- color: Colors.white,
- child: InkWell(
- onTap: onTap,
- child: Row(
- children: <Widget>[
- Padding(padding: EdgeInsets.only(right: contentPadding.right), child: leading),
- Expanded(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- title,
- SizedBox(height: 2),
- subtitle
- ],
- ),
- )
- ],
- ),
- ),
- ),
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement