mirror of
https://github.com/Iconica-Development/flutter_form_wizard.git
synced 2025-05-19 10:53:49 +02:00
refactor: expose FlutterFormInputDateTime params from flutter_input_library
This commit is contained in:
parent
b1ca468085
commit
c2fac70838
1 changed files with 22 additions and 4 deletions
|
@ -34,30 +34,47 @@ class FlutterFormInputDateTime extends FlutterFormInputWidget<String> {
|
||||||
required this.inputType,
|
required this.inputType,
|
||||||
required this.dateFormat,
|
required this.dateFormat,
|
||||||
required this.validationMessage,
|
required this.validationMessage,
|
||||||
|
this.decoration,
|
||||||
|
this.style,
|
||||||
super.key,
|
super.key,
|
||||||
super.label,
|
this.label,
|
||||||
this.showIcon = true,
|
this.showIcon = true,
|
||||||
this.validator,
|
|
||||||
this.firstDate,
|
this.firstDate,
|
||||||
this.lastDate,
|
this.lastDate,
|
||||||
this.initialDate,
|
this.initialDate,
|
||||||
this.initialDateTimeRange,
|
this.initialDateTimeRange,
|
||||||
|
this.initialTime,
|
||||||
this.icon = Icons.calendar_today,
|
this.icon = Icons.calendar_today,
|
||||||
|
this.initialValue,
|
||||||
|
this.onChanged,
|
||||||
|
this.onSaved,
|
||||||
|
this.validator,
|
||||||
|
this.autovalidateMode = AutovalidateMode.disabled,
|
||||||
|
this.timePickerEntryMode = TimePickerEntryMode.dial,
|
||||||
this.enabled = true,
|
this.enabled = true,
|
||||||
this.onTapEnabled = true,
|
this.onTapEnabled = true,
|
||||||
});
|
});
|
||||||
|
final TextStyle? style;
|
||||||
|
final InputDecoration? decoration;
|
||||||
|
final Widget? label;
|
||||||
final bool showIcon;
|
final bool showIcon;
|
||||||
final input.FlutterFormDateTimeType inputType;
|
final input.FlutterFormDateTimeType inputType;
|
||||||
final DateFormat dateFormat;
|
final DateFormat dateFormat;
|
||||||
final DateTime? initialDate;
|
final DateTime? initialDate;
|
||||||
final DateTimeRange? initialDateTimeRange;
|
final DateTimeRange? initialDateTimeRange;
|
||||||
|
final TimeOfDay? initialTime;
|
||||||
final DateTime? firstDate;
|
final DateTime? firstDate;
|
||||||
final DateTime? lastDate;
|
final DateTime? lastDate;
|
||||||
final IconData icon;
|
final IconData icon;
|
||||||
|
final String? initialValue;
|
||||||
|
final String? Function(String?)? validator;
|
||||||
|
final String validationMessage;
|
||||||
|
final void Function(String?)? onSaved;
|
||||||
|
final void Function(String?)? onChanged;
|
||||||
|
final AutovalidateMode autovalidateMode;
|
||||||
|
final TimePickerEntryMode timePickerEntryMode;
|
||||||
final bool enabled;
|
final bool enabled;
|
||||||
final bool onTapEnabled;
|
final bool onTapEnabled;
|
||||||
final String validationMessage;
|
|
||||||
final String? Function(String?)? validator;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -66,6 +83,7 @@ class FlutterFormInputDateTime extends FlutterFormInputWidget<String> {
|
||||||
return input.FlutterFormInputDateTime(
|
return input.FlutterFormInputDateTime(
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
showIcon: showIcon,
|
showIcon: showIcon,
|
||||||
|
decoration: decoration,
|
||||||
onTapEnabled: onTapEnabled,
|
onTapEnabled: onTapEnabled,
|
||||||
label: label,
|
label: label,
|
||||||
icon: icon,
|
icon: icon,
|
||||||
|
|
Loading…
Reference in a new issue