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
|
||||
|
||||
* 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.expands = false,
|
||||
this.maxLines = 1,
|
||||
this.minLines,
|
||||
this.scrollPadding,
|
||||
this.maxLength,
|
||||
this.keyboardType,
|
||||
|
@ -33,6 +34,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
|||
final TextAlignVertical? textAlignVertical;
|
||||
final bool expands;
|
||||
final int? maxLines;
|
||||
final int? minLines;
|
||||
final int? maxLength;
|
||||
final EdgeInsets? scrollPadding;
|
||||
final TextInputType? keyboardType;
|
||||
|
@ -70,6 +72,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
|||
textAlignVertical: textAlignVertical,
|
||||
expands: expands,
|
||||
maxLines: maxLines,
|
||||
minLines: minLines,
|
||||
maxLength: maxLength,
|
||||
keyboardType: keyboardType,
|
||||
enabled: enabled,
|
||||
|
@ -97,6 +100,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
|||
this.onFieldSubmitted,
|
||||
this.textCapitalization = TextCapitalization.sentences,
|
||||
this.style,
|
||||
this.minLines,
|
||||
});
|
||||
|
||||
final Widget? label;
|
||||
|
@ -115,6 +119,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
|||
final Function(String?)? onFieldSubmitted;
|
||||
final TextCapitalization textCapitalization;
|
||||
final TextStyle? style;
|
||||
final int? minLines;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Column(
|
||||
|
@ -126,6 +131,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
|||
textAlignVertical: TextAlignVertical.top,
|
||||
expands: true,
|
||||
maxLines: null,
|
||||
minLines: minLines,
|
||||
focusNode: focusNode,
|
||||
maxLength: maxCharacters,
|
||||
initialValue: initialValue,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: flutter_input_library
|
||||
description: A new Flutter package project.
|
||||
version: 3.7.0
|
||||
version: 3.8.0
|
||||
repository: https://github.com/Iconica-Development/flutter_input_library
|
||||
|
||||
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||
|
|
Loading…
Reference in a new issue