mirror of
https://github.com/Iconica-Development/flutter_input_library.git
synced 2025-05-18 17:03:45 +02:00
feat: add parameter to set the minLines of the TextFormField
This commit is contained in:
parent
7d64f467bf
commit
6b9fc30af8
3 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
## 3.8.0
|
||||||
|
|
||||||
|
* Added the minLines parameter to the FlutterFormInputPlainText
|
||||||
|
|
||||||
## 3.7.0
|
## 3.7.0
|
||||||
|
|
||||||
* Added a 16 pixel padding between the `FlutterFormInputRadioPicker` items that is customizable with the `itemSpacing` parameter.
|
* Added a 16 pixel padding between the `FlutterFormInputRadioPicker` items that is customizable with the `itemSpacing` parameter.
|
||||||
|
|
|
@ -14,6 +14,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
||||||
this.textAlignVertical,
|
this.textAlignVertical,
|
||||||
this.expands = false,
|
this.expands = false,
|
||||||
this.maxLines = 1,
|
this.maxLines = 1,
|
||||||
|
this.minLines,
|
||||||
this.scrollPadding,
|
this.scrollPadding,
|
||||||
this.maxLength,
|
this.maxLength,
|
||||||
this.keyboardType,
|
this.keyboardType,
|
||||||
|
@ -33,6 +34,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
||||||
final TextAlignVertical? textAlignVertical;
|
final TextAlignVertical? textAlignVertical;
|
||||||
final bool expands;
|
final bool expands;
|
||||||
final int? maxLines;
|
final int? maxLines;
|
||||||
|
final int? minLines;
|
||||||
final int? maxLength;
|
final int? maxLength;
|
||||||
final EdgeInsets? scrollPadding;
|
final EdgeInsets? scrollPadding;
|
||||||
final TextInputType? keyboardType;
|
final TextInputType? keyboardType;
|
||||||
|
@ -70,6 +72,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
||||||
textAlignVertical: textAlignVertical,
|
textAlignVertical: textAlignVertical,
|
||||||
expands: expands,
|
expands: expands,
|
||||||
maxLines: maxLines,
|
maxLines: maxLines,
|
||||||
|
minLines: minLines,
|
||||||
maxLength: maxLength,
|
maxLength: maxLength,
|
||||||
keyboardType: keyboardType,
|
keyboardType: keyboardType,
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
|
@ -97,6 +100,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
||||||
this.onFieldSubmitted,
|
this.onFieldSubmitted,
|
||||||
this.textCapitalization = TextCapitalization.sentences,
|
this.textCapitalization = TextCapitalization.sentences,
|
||||||
this.style,
|
this.style,
|
||||||
|
this.minLines,
|
||||||
});
|
});
|
||||||
|
|
||||||
final Widget? label;
|
final Widget? label;
|
||||||
|
@ -115,6 +119,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
||||||
final Function(String?)? onFieldSubmitted;
|
final Function(String?)? onFieldSubmitted;
|
||||||
final TextCapitalization textCapitalization;
|
final TextCapitalization textCapitalization;
|
||||||
final TextStyle? style;
|
final TextStyle? style;
|
||||||
|
final int? minLines;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => Column(
|
Widget build(BuildContext context) => Column(
|
||||||
|
@ -126,6 +131,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
||||||
textAlignVertical: TextAlignVertical.top,
|
textAlignVertical: TextAlignVertical.top,
|
||||||
expands: true,
|
expands: true,
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
|
minLines: minLines,
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
maxLength: maxCharacters,
|
maxLength: maxCharacters,
|
||||||
initialValue: initialValue,
|
initialValue: initialValue,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_input_library
|
name: flutter_input_library
|
||||||
description: A new Flutter package project.
|
description: A new Flutter package project.
|
||||||
version: 3.7.0
|
version: 3.8.0
|
||||||
repository: https://github.com/Iconica-Development/flutter_input_library
|
repository: https://github.com/Iconica-Development/flutter_input_library
|
||||||
|
|
||||||
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
|
|
Loading…
Reference in a new issue