mirror of
https://github.com/Iconica-Development/flutter_form_wizard.git
synced 2025-05-20 11:23:46 +02:00
add scollpadding
This commit is contained in:
parent
71c1539c78
commit
f82d5ac7b2
3 changed files with 9 additions and 2 deletions
|
@ -21,3 +21,7 @@
|
||||||
## 1.0.1 - October 13th 2022
|
## 1.0.1 - October 13th 2022
|
||||||
|
|
||||||
- Added forgotten onChanged parameter on date input field
|
- 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,
|
required this.controller,
|
||||||
this.label,
|
this.label,
|
||||||
this.showIcon = true,
|
this.showIcon = true,
|
||||||
required this.icon,
|
this.icon,
|
||||||
required this.dateFormat,
|
required this.dateFormat,
|
||||||
required this.firstDate,
|
required this.firstDate,
|
||||||
required this.lastDate,
|
required this.lastDate,
|
||||||
|
@ -32,7 +32,7 @@ class DateTimeInputField extends ConsumerStatefulWidget {
|
||||||
final DateTime? lastDate;
|
final DateTime? lastDate;
|
||||||
final DateTime? initialDate;
|
final DateTime? initialDate;
|
||||||
final DateTimeRange? initialDateTimeRange;
|
final DateTimeRange? initialDateTimeRange;
|
||||||
final IconData icon;
|
final IconData? icon;
|
||||||
final Widget? label;
|
final Widget? label;
|
||||||
@override
|
@override
|
||||||
ConsumerState<DateTimeInputField> createState() => _DateInputFieldState();
|
ConsumerState<DateTimeInputField> createState() => _DateInputFieldState();
|
||||||
|
|
|
@ -16,6 +16,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
|
||||||
this.textAlignVertical,
|
this.textAlignVertical,
|
||||||
this.expands = false,
|
this.expands = false,
|
||||||
this.maxLines,
|
this.maxLines,
|
||||||
|
this.scrollPadding,
|
||||||
this.maxLength,
|
this.maxLength,
|
||||||
}) : super(key: key, controller: controller, label: label);
|
}) : super(key: key, controller: controller, label: label);
|
||||||
|
|
||||||
|
@ -24,6 +25,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
|
||||||
final bool expands;
|
final bool expands;
|
||||||
final int? maxLines;
|
final int? maxLines;
|
||||||
final int? maxLength;
|
final int? maxLength;
|
||||||
|
final EdgeInsets? scrollPadding;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
|
@ -38,6 +40,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
|
||||||
);
|
);
|
||||||
|
|
||||||
return TextFormField(
|
return TextFormField(
|
||||||
|
scrollPadding: scrollPadding ?? const EdgeInsets.all(20.0),
|
||||||
initialValue: controller.value,
|
initialValue: controller.value,
|
||||||
onSaved: (value) => controller.onSaved(value),
|
onSaved: (value) => controller.onSaved(value),
|
||||||
validator: (value) => controller.onValidate(value, _),
|
validator: (value) => controller.onValidate(value, _),
|
||||||
|
|
Loading…
Reference in a new issue