diff --git a/CHANGELOG.md b/CHANGELOG.md index 1caa569..9c29a36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 \ No newline at end of file diff --git a/lib/src/widgets/input/input_types/input_date_picker/date_picker.dart b/lib/src/widgets/input/input_types/input_date_picker/date_picker.dart index cd5c5bc..4b9b3a4 100644 --- a/lib/src/widgets/input/input_types/input_date_picker/date_picker.dart +++ b/lib/src/widgets/input/input_types/input_date_picker/date_picker.dart @@ -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 createState() => _DateInputFieldState(); diff --git a/lib/src/widgets/input/input_types/input_date_picker/input_date_picker.dart b/lib/src/widgets/input/input_types/input_date_picker/input_date_picker.dart index 5e7d7f8..83637d7 100644 --- a/lib/src/widgets/input/input_types/input_date_picker/input_date_picker.dart +++ b/lib/src/widgets/input/input_types/input_date_picker/input_date_picker.dart @@ -52,6 +52,7 @@ class FlutterFormInputDateTime extends FlutterFormInputWidget { return DateTimeInputField( label: label, + icon: icon, firstDate: firstDate, lastDate: lastDate, inputType: inputType, diff --git a/lib/src/widgets/input/input_types/input_plain_text.dart b/lib/src/widgets/input/input_types/input_plain_text.dart index be0b887..bc864c7 100644 --- a/lib/src/widgets/input/input_types/input_plain_text.dart +++ b/lib/src/widgets/input/input_types/input_plain_text.dart @@ -16,6 +16,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget { 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 { 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 { ); return TextFormField( + scrollPadding: scrollPadding ?? const EdgeInsets.all(20.0), initialValue: controller.value, onSaved: (value) => controller.onSaved(value), validator: (value) => controller.onValidate(value, _),