mirror of
https://github.com/Iconica-Development/flutter_input_library.git
synced 2025-05-18 17:03:45 +02:00
feat: Added the parameter for textcapitalization for plain text and multi line
This commit is contained in:
parent
d672ddeafd
commit
cc0694554f
3 changed files with 11 additions and 2 deletions
|
@ -51,3 +51,6 @@
|
||||||
|
|
||||||
## 2.5.2
|
## 2.5.2
|
||||||
* Addition of `style` parameter to `FlutterFormInputPassword` widget.
|
* Addition of `style` parameter to `FlutterFormInputPassword` widget.
|
||||||
|
|
||||||
|
## 2.6.0
|
||||||
|
* Addition of the `textCapitalization` parameter to `FlutterFormInputPlainText` and `FlutterFormInputMultiLine`.
|
|
@ -25,6 +25,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
||||||
this.style,
|
this.style,
|
||||||
this.formatInputs,
|
this.formatInputs,
|
||||||
this.enabled = true,
|
this.enabled = true,
|
||||||
|
this.textCapitalization = TextCapitalization.none,
|
||||||
}) : super(
|
}) : super(
|
||||||
key: key,
|
key: key,
|
||||||
);
|
);
|
||||||
|
@ -46,6 +47,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
||||||
final TextStyle? style;
|
final TextStyle? style;
|
||||||
final List<TextInputFormatter>? formatInputs;
|
final List<TextInputFormatter>? formatInputs;
|
||||||
final bool enabled;
|
final bool enabled;
|
||||||
|
final TextCapitalization textCapitalization;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -71,6 +73,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
||||||
maxLength: maxLength,
|
maxLength: maxLength,
|
||||||
keyboardType: keyboardType,
|
keyboardType: keyboardType,
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
|
textCapitalization: textCapitalization,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,6 +94,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
||||||
this.onSaved,
|
this.onSaved,
|
||||||
this.validator,
|
this.validator,
|
||||||
this.onFieldSubmitted,
|
this.onFieldSubmitted,
|
||||||
|
this.textCapitalization = TextCapitalization.sentences,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final Widget? label;
|
final Widget? label;
|
||||||
|
@ -107,6 +111,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
||||||
final String? Function(String?)? validator;
|
final String? Function(String?)? validator;
|
||||||
final Function(String?)? onChanged;
|
final Function(String?)? onChanged;
|
||||||
final Function(String?)? onFieldSubmitted;
|
final Function(String?)? onFieldSubmitted;
|
||||||
|
final TextCapitalization textCapitalization;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -141,6 +146,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
||||||
filled: true,
|
filled: true,
|
||||||
),
|
),
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
|
textCapitalization: textCapitalization,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -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: 2.5.2
|
version: 2.6.0
|
||||||
repository: https://github.com/Iconica-Development/flutter_input_library
|
repository: https://github.com/Iconica-Development/flutter_input_library
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue