buildLabel function

Widget buildLabel(
  1. String label,
  2. bool isRequired
)

Implementation

Widget buildLabel(String label, bool isRequired) {
  return Row(
    children: [
      Text(
        label,
        style: const TextStyle(
          color: Colors.white,
          fontWeight: FontWeight.w500,
          fontSize: 13,
        ),
      ),
      if (isRequired)
        const Text(
          ' *',
          style: TextStyle(color: Colors.redAccent, fontSize: 13),
        ),
    ],
  );
}