k4zek4ge
10/18/2019 - 2:38 PM

table example

return: padding: const EdgeInsets.all(8.0),
      child: Table(
          columnWidths: {0: IntrinsicColumnWidth()},
          defaultVerticalAlignment: TableCellVerticalAlignment.middle,
          children: [
            TableRow(
              children: [
                Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: Icon(
                    Icons.check_circle,
                    color: RentMiColors.kRentMiBlue,
                    size: 16,
                  ),
                ),
                AutoSizeText(
                  title,
                  style: Styles.kCheckedItemWidgetTitle,
                  minFontSize: Styles.kCheckedItemWidgetTitle.fontSize,
                  maxLines: 2,
                ),
              ],
            ),
            TableRow(
              children: [
                Container(),
                AutoSizeText(subtitle,
                    style: Styles.kCheckedItemWidgetDescription,
                    minFontSize: Styles.kCheckedItemWidgetDescription.fontSize,
                    maxLines: 4)
              ],
            )
          ]),
    );