FCustomTextFieldCalendar constructor

const FCustomTextFieldCalendar({
  1. Key? key,
  2. DateTime? initialDate,
  3. DateTime? minDate,
  4. DateTime? maxDate,
  5. dynamic onSelectionChanged(
    1. DateRangePickerSelectionChangedArgs
    )?,
  6. Color? selectedColor = Colors.green,
  7. required TextEditingController controller,
  8. required String title,
  9. TextStyle titleStyle = const TextStyle(),
  10. Widget? suffixIcon,
  11. String? hintText,
  12. double sizeItemCalendar = 35,
  13. TextStyle textStyle = const TextStyle(overflow: TextOverflow.ellipsis),
  14. Color fillColor = Colors.white70,
  15. bool showCalendar = true,
  16. InputBorder? inputBorder,
  17. double borderRadius = 10,
  18. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 15.0, horizontal: 15.0),
  19. TextStyle? hintStyle = const TextStyle(overflow: TextOverflow.ellipsis),
  20. ValueChanged<String>? onChanged,
  21. bool readOnly = false,
  22. bool? enabled,
  23. InputBorder? enabledBorder = const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10)), borderSide: BorderSide(color: Color(0xFF646464), width: 0.5)),
})

Implementation

const FCustomTextFieldCalendar(
    {Key? key,
    this.initialDate,
    this.minDate,
    this.maxDate,
    this.onSelectionChanged,
    this.selectedColor = Colors.green,
    required this.controller,
    required this.title,
    this.titleStyle = const TextStyle(),
    this.suffixIcon,
    this.hintText,
    this.sizeItemCalendar = 35,
    this.textStyle = const TextStyle(overflow: TextOverflow.ellipsis),
    this.fillColor = Colors.white70,
    this.showCalendar = true,
    this.inputBorder,
    this.borderRadius = 10,
    this.contentPadding =
        const EdgeInsets.symmetric(vertical: 15.0, horizontal: 15.0),
    this.hintStyle = const TextStyle(overflow: TextOverflow.ellipsis),
    this.onChanged,
    this.readOnly = false,
    this.enabled,
    this.enabledBorder = const OutlineInputBorder(
        borderRadius: BorderRadius.all(Radius.circular(10)),
        borderSide: BorderSide(color: Color(0xFF646464), width: 0.5))})
    : super(key: key);