UTextFieldDatePicker constructor
const
UTextFieldDatePicker({
- required dynamic onChange(),
- Key? key,
- String? text,
- double? fontSize,
- String? hintText,
- String? labelText,
- Widget? prefix,
- Widget? suffix,
- double? textHeight,
- TextEditingController? controller,
- DateTime? initialDate,
- int? startYear,
- int? endYear,
- String? validator()?,
- bool readOnly = false,
- bool date = true,
- bool time = false,
- TextAlign textAlign = TextAlign.start,
- bool jalali = false,
- UJalaliDatePickerType jalaliType = UJalaliDatePickerType.material,
- bool spinnerAsDialog = false,
- String? helpText,
- EdgeInsetsGeometry? margin,
- bool visible = true,
- double? opacity,
- BoxFit? fit,
- AlignmentGeometry fitAlignment = Alignment.center,
- double? scale,
- double? rotate,
- Offset? translate,
- bool center = false,
- bool safeArea = false,
- int? expanded,
- int? flexible,
- bool positioned = false,
- double? left,
- double? top,
- double? right,
- double? bottom,
- double? positionedWidth,
- double? positionedHeight,
Implementation
const UTextFieldDatePicker({
required this.onChange,
super.key,
this.text,
this.fontSize,
this.hintText,
this.labelText,
this.prefix,
this.suffix,
this.textHeight,
this.controller,
this.initialDate,
this.startYear,
this.endYear,
this.validator,
this.readOnly = false,
this.date = true,
this.time = false,
this.textAlign = TextAlign.start,
this.jalali = false,
this.jalaliType = UJalaliDatePickerType.material,
this.spinnerAsDialog = false,
this.helpText,
this.margin,
this.visible = true,
this.opacity,
this.fit,
this.fitAlignment = Alignment.center,
this.scale,
this.rotate,
this.translate,
this.center = false,
this.safeArea = false,
this.expanded,
this.flexible,
this.positioned = false,
this.left,
this.top,
this.right,
this.bottom,
this.positionedWidth,
this.positionedHeight,
});