FCustomTextFieldCalendar constructor
const
FCustomTextFieldCalendar({
- Key? key,
- DateTime? initialDate,
- DateTime? minDate,
- DateTime? maxDate,
- dynamic onSelectionChanged(
- DateRangePickerSelectionChangedArgs
- Color? selectedColor = Colors.green,
- required TextEditingController controller,
- required String title,
- TextStyle titleStyle = const TextStyle(),
- Widget? suffixIcon,
- String? hintText,
- double sizeItemCalendar = 35,
- TextStyle textStyle = const TextStyle(overflow: TextOverflow.ellipsis),
- Color fillColor = Colors.white70,
- bool showCalendar = true,
- InputBorder? inputBorder,
- double borderRadius = 10,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 15.0, horizontal: 15.0),
- TextStyle? hintStyle = const TextStyle(overflow: TextOverflow.ellipsis),
- ValueChanged<
String> ? onChanged, - bool readOnly = false,
- bool? enabled,
- 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);