getDecorationColor static method
Implementation
static InputDecoration getDecorationColor(
String label, void Function()? onChangedFunction) {
return InputDecoration(
errorStyle: const TextStyle(fontSize: 0.01),
fillColor: Colors.red,
focusColor: Colors.black,
labelText: label,
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(width: 1.5, color: GlobalParams.GlobalColor),
),
labelStyle: TextStyle(
fontWeight: FontWeight.w300,
fontSize: 14,
fontFamily: 'Open Sans',
color: GlobalParams.GlobalColor),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10),
),
suffixIcon: IconButton(
onPressed: onChangedFunction,
icon: const Icon(
Icons.calendar_month,
size: 20,
),
));
}