mirror of
https://github.com/Iconica-Development/flutter_form_wizard.git
synced 2025-05-19 19:03:47 +02:00
feat: Added the property textCapitalization to PlainText and Multiline inputs
This commit is contained in:
parent
4710d4adbc
commit
bcd77b1e9b
4 changed files with 16 additions and 7 deletions
|
@ -106,3 +106,6 @@
|
||||||
## 6.1.8 - December 6th 2023
|
## 6.1.8 - December 6th 2023
|
||||||
- Pass on the style property to the FlutterFormPlainText input widget
|
- 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
|
|
@ -68,16 +68,16 @@ packages:
|
||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "6.1.7"
|
version: "6.2.0"
|
||||||
flutter_input_library:
|
flutter_input_library:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: "2.4.0"
|
ref: "2.6.0"
|
||||||
resolved-ref: "6f9fbccfbd2bde17321a7c1a2598cf8bfc2ad91b"
|
resolved-ref: "6ae18d09bb06098bd2789a77190f2326c260ee98"
|
||||||
url: "https://github.com/Iconica-Development/flutter_input_library"
|
url: "https://github.com/Iconica-Development/flutter_input_library"
|
||||||
source: git
|
source: git
|
||||||
version: "2.4.0"
|
version: "2.6.0"
|
||||||
flutter_lints:
|
flutter_lints:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -27,6 +27,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
|
||||||
this.keyboardType,
|
this.keyboardType,
|
||||||
this.enabled = true,
|
this.enabled = true,
|
||||||
this.style,
|
this.style,
|
||||||
|
this.textCapitalization = TextCapitalization.none,
|
||||||
}) : super(
|
}) : super(
|
||||||
key: key,
|
key: key,
|
||||||
controller: controller,
|
controller: controller,
|
||||||
|
@ -43,6 +44,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
|
||||||
@override
|
@override
|
||||||
final bool enabled;
|
final bool enabled;
|
||||||
final TextStyle? style;
|
final TextStyle? style;
|
||||||
|
final TextCapitalization textCapitalization;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -71,6 +73,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget<String> {
|
||||||
maxLines: maxLines,
|
maxLines: maxLines,
|
||||||
maxLength: maxLength,
|
maxLength: maxLength,
|
||||||
keyboardType: keyboardType,
|
keyboardType: keyboardType,
|
||||||
|
textCapitalization: textCapitalization,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,6 +94,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
||||||
this.hint,
|
this.hint,
|
||||||
this.maxCharacters,
|
this.maxCharacters,
|
||||||
this.enabled = true,
|
this.enabled = true,
|
||||||
|
this.textCapitalization = TextCapitalization.sentences,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final FlutterFormInputController<String> controller;
|
final FlutterFormInputController<String> controller;
|
||||||
|
@ -100,6 +104,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
||||||
final String? hint;
|
final String? hint;
|
||||||
final int? maxCharacters;
|
final int? maxCharacters;
|
||||||
final bool enabled;
|
final bool enabled;
|
||||||
|
final TextCapitalization textCapitalization;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -114,6 +119,7 @@ class FlutterFormInputMultiLine extends StatelessWidget {
|
||||||
onChanged: controller.onChanged,
|
onChanged: controller.onChanged,
|
||||||
onSaved: controller.onSaved,
|
onSaved: controller.onSaved,
|
||||||
validator: (v) => controller.onValidate(v, _),
|
validator: (v) => controller.onValidate(v, _),
|
||||||
|
textCapitalization: textCapitalization,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_form_wizard
|
name: flutter_form_wizard
|
||||||
description: A new Flutter package project.
|
description: A new Flutter package project.
|
||||||
version: 6.1.8
|
version: 6.2.0
|
||||||
homepage: https://github.com/Iconica-Development/flutter_form_wizard
|
homepage: https://github.com/Iconica-Development/flutter_form_wizard
|
||||||
|
|
||||||
publish_to: none
|
publish_to: none
|
||||||
|
@ -18,7 +18,7 @@ dependencies:
|
||||||
flutter_input_library:
|
flutter_input_library:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Iconica-Development/flutter_input_library
|
url: https://github.com/Iconica-Development/flutter_input_library
|
||||||
ref: 2.5.0
|
ref: 2.6.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
Loading…
Reference in a new issue