tile static method

Widget tile({
  1. String? title,
  2. String? subtitle,
  3. bool leading = true,
  4. bool leadingOval = false,
  5. double topPadding = kMediumPaddingY,
})

Implementation

static Widget tile({
  String? title,
  String? subtitle,
  bool leading = true,
  bool leadingOval = false,
  double topPadding = kMediumPaddingY,
}) =>
    custom((context) => GetTile.medium(
        leading: leading ? 24.space : null,
        leadingOval: leadingOval,
        topPadding: topPadding + topPadding.half,
        titleChild: title?.mapIt((it) => Container(
              color: Colors.grey,
              child: Text(it, style: context.overline),
            )),
        verticalSpacing: 8,
        subtitleChild: subtitle?.mapIt(
          (it) => Container(
            color: Colors.grey,
            child: Text(it, style: context.overline),
          ),
        )));