getListRow method

Widget getListRow(
  1. String name,
  2. String value
)

Implementation

Widget getListRow(String name, String value) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.start,
    crossAxisAlignment: CrossAxisAlignment.start,
    children: [
      Text(
        name,
        style: const TextStyle(fontWeight: FontWeight.bold),
      ),
      const SizedBox(width: 5),
      Flexible(
        fit: FlexFit.loose,
        child: Text(
          value,
          overflow: TextOverflow.clip,
          style: TextStyle(
            color: name == 'Status:'
                ? (int.tryParse(value) ?? -1).getStatusTextColor()
                : null,
          ),
        ),
      ),
    ],
  );
}