buildContent method

Widget buildContent(
  1. BuildContext context
)

Implementation

Widget buildContent(BuildContext context) {
  var themeData = Theme.of(context);
  return Row(
    children: <Widget>[
      if (leftWidget != null) leftWidget!,
      if (leftWidget != null) const SizedBox(width: 10),
      Expanded(
        child: Column(
          children: [
            if (isSeparatorVisible) const SizedBox(height: 1),
            Expanded(
              child: Row(
                children: [
                  if (title != null) Text(title!, style: themeData.textTheme.titleMedium, maxLines: 1),
                  Expanded(
                    child: (subtitle != null)
                        ? Text(
                            '   ' + subtitle!,
                            style: TextStyle(fontSize: 16, color: subtitleColor ?? Colors.black87),
                            textAlign: TextAlign.end,
                            maxLines: 1,
                            overflow: TextOverflow.ellipsis,
                          )
                        : const SizedBox(),
                  ),
                  if (rightWidget != null) rightWidget!,
                  SizedBox(width: isArrowVisible ? 12 : rightPadding),
                  if (isArrowVisible) const Icon(Icons.arrow_forward_ios, color: Colors.black45, size: 16),
                  if (isArrowVisible) const SizedBox(width: 10),
                ],
              ),
            ),
            if (isSeparatorVisible) const Divider(height: 1)
          ],
        ),
      ),
    ],
  );
}