mirror of
https://github.com/Iconica-Development/flutter_form_wizard.git
synced 2025-05-19 19:03:47 +02:00
Merge branch 'master' of github.com:Iconica-Development/flutter_form
This commit is contained in:
commit
3ed774bebb
4 changed files with 10 additions and 2 deletions
|
@ -21,3 +21,7 @@
|
|||
## 1.0.1 - October 13th 2022
|
||||
|
||||
- Added forgotten onChanged parameter on date input field
|
||||
|
||||
## 1.0.2 - October 13th 2022
|
||||
|
||||
- Added forgotten icon parameter on date input field and scrollpadding on text inputfield
|
|
@ -15,7 +15,7 @@ class DateTimeInputField extends ConsumerStatefulWidget {
|
|||
required this.controller,
|
||||
this.label,
|
||||
this.showIcon = true,
|
||||
this.icon = Icons.calendar_today,
|
||||
this.icon,
|
||||
required this.dateFormat,
|
||||
required this.firstDate,
|
||||
required this.lastDate,
|
||||
|
@ -32,7 +32,7 @@ class DateTimeInputField extends ConsumerStatefulWidget {
|
|||
final DateTime? lastDate;
|
||||
final DateTime? initialDate;
|
||||
final DateTimeRange? initialDateTimeRange;
|
||||
final IconData icon;
|
||||
final IconData? icon;
|
||||
final Widget? label;
|
||||
@override
|
||||
ConsumerState<DateTimeInputField> createState() => _DateInputFieldState();
|
||||
|
|
|
@ -52,6 +52,7 @@ class FlutterFormInputDateTime extends FlutterFormInputWidget<String> {
|
|||
|
||||
return DateTimeInputField(
|
||||
label: label,
|
||||
icon: icon,
|
||||
firstDate: firstDate,
|
||||
lastDate: lastDate,
|
||||
inputType: inputType,
|
||||
|
|
|
@ -16,6 +16,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
|
|||
this.textAlignVertical,
|
||||
this.expands = false,
|
||||
this.maxLines,
|
||||
this.scrollPadding,
|
||||
this.maxLength,
|
||||
}) : super(key: key, controller: controller, label: label);
|
||||
|
||||
|
@ -24,6 +25,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
|
|||
final bool expands;
|
||||
final int? maxLines;
|
||||
final int? maxLength;
|
||||
final EdgeInsets? scrollPadding;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
|
@ -38,6 +40,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
|
|||
);
|
||||
|
||||
return TextFormField(
|
||||
scrollPadding: scrollPadding ?? const EdgeInsets.all(20.0),
|
||||
initialValue: controller.value,
|
||||
onSaved: (value) => controller.onSaved(value),
|
||||
validator: (value) => controller.onValidate(value, _),
|
||||
|
|
Loading…
Reference in a new issue