feat: Added the property textCapitalization to PlainText and Multiline inputs

This commit is contained in:
Jacques 2023-12-14 16:36:43 +01:00
parent 4710d4adbc
commit bcd77b1e9b
4 changed files with 16 additions and 7 deletions

View file

@ -105,4 +105,7 @@
## 6.1.8 - December 6th 2023
- Pass on the style property to the FlutterFormPlainText input widget
- Bump `flutter_input_library` to version 2.5.0
- Bump `flutter_input_library` to version 2.5.0
## 6.2.0 - December 14th 2023
- Pass on the `textCapitalization` property to FlutterFormPlainText and FlutterFormMultiLine

View file

@ -68,16 +68,16 @@ packages:
path: ".."
relative: true
source: path
version: "6.1.7"
version: "6.2.0"
flutter_input_library:
dependency: transitive
description:
path: "."
ref: "2.4.0"
resolved-ref: "6f9fbccfbd2bde17321a7c1a2598cf8bfc2ad91b"
ref: "2.6.0"
resolved-ref: "6ae18d09bb06098bd2789a77190f2326c260ee98"
url: "https://github.com/Iconica-Development/flutter_input_library"
source: git
version: "2.4.0"
version: "2.6.0"
flutter_lints:
dependency: "direct dev"
description:

View file

@ -27,6 +27,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
this.keyboardType,
this.enabled = true,
this.style,
this.textCapitalization = TextCapitalization.none,
}) : super(
key: key,
controller: controller,
@ -43,6 +44,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
@override
final bool enabled;
final TextStyle? style;
final TextCapitalization textCapitalization;
@override
Widget build(BuildContext context) {
@ -71,6 +73,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
maxLines: maxLines,
maxLength: maxLength,
keyboardType: keyboardType,
textCapitalization: textCapitalization,
);
}
}
@ -91,6 +94,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
this.hint,
this.maxCharacters,
this.enabled = true,
this.textCapitalization = TextCapitalization.sentences,
}) : super(key: key);
final FlutterFormInputController<String> controller;
@ -100,6 +104,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
final String? hint;
final int? maxCharacters;
final bool enabled;
final TextCapitalization textCapitalization;
@override
Widget build(BuildContext context) {
@ -114,6 +119,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
onChanged: controller.onChanged,
onSaved: controller.onSaved,
validator: (v) => controller.onValidate(v, _),
textCapitalization: textCapitalization,
);
}
}

View file

@ -1,6 +1,6 @@
name: flutter_form_wizard
description: A new Flutter package project.
version: 6.1.8
version: 6.2.0
homepage: https://github.com/Iconica-Development/flutter_form_wizard
publish_to: none
@ -18,7 +18,7 @@ dependencies:
flutter_input_library:
git:
url: https://github.com/Iconica-Development/flutter_input_library
ref: 2.5.0
ref: 2.6.0
dev_dependencies:
flutter_test: