mirror of
https://github.com/Iconica-Development/flutter_input_library.git
synced 2025-05-18 17:03:45 +02:00
Merge pull request #27 from Iconica-Development/feat/obscure-text
feat: add obscureText property to plain input
This commit is contained in:
commit
4f0e548186
3 changed files with 8 additions and 2 deletions
|
@ -53,4 +53,7 @@
|
||||||
* Addition of `style` parameter to `FlutterFormInputPassword` widget.
|
* Addition of `style` parameter to `FlutterFormInputPassword` widget.
|
||||||
|
|
||||||
## 2.6.0
|
## 2.6.0
|
||||||
* Addition of the `textCapitalization` parameter to `FlutterFormInputPlainText` and `FlutterFormInputMultiLine`.
|
* Addition of the `textCapitalization` parameter to `FlutterFormInputPlainText` and `FlutterFormInputMultiLine`.
|
||||||
|
|
||||||
|
## 2.6.1
|
||||||
|
* Addition of 'obscureText' parameter to 'FlutterFormInputPlainText'
|
|
@ -26,6 +26,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
||||||
this.formatInputs,
|
this.formatInputs,
|
||||||
this.enabled = true,
|
this.enabled = true,
|
||||||
this.textCapitalization = TextCapitalization.none,
|
this.textCapitalization = TextCapitalization.none,
|
||||||
|
this.obscureText = false,
|
||||||
}) : super(
|
}) : super(
|
||||||
key: key,
|
key: key,
|
||||||
);
|
);
|
||||||
|
@ -48,6 +49,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
||||||
final List<TextInputFormatter>? formatInputs;
|
final List<TextInputFormatter>? formatInputs;
|
||||||
final bool enabled;
|
final bool enabled;
|
||||||
final TextCapitalization textCapitalization;
|
final TextCapitalization textCapitalization;
|
||||||
|
final bool obscureText;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -74,6 +76,7 @@ class FlutterFormInputPlainText extends StatelessWidget {
|
||||||
keyboardType: keyboardType,
|
keyboardType: keyboardType,
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
textCapitalization: textCapitalization,
|
textCapitalization: textCapitalization,
|
||||||
|
obscureText: obscureText,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.6.0
|
version: 2.6.1
|
||||||
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