buildLabel function
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),
),
],
);
}