mirror of
https://github.com/Iconica-Development/flutter_input_library.git
synced 2025-05-18 17:03:45 +02:00
feat: add style parameter to FlutterFormInputPassword
This commit is contained in:
parent
3cffe40f34
commit
df7ce8a98b
2 changed files with 7 additions and 1 deletions
|
@ -47,4 +47,7 @@
|
|||
|
||||
## 2.5.1
|
||||
* Addition of `formatInputs` parameter to `FlutterFormInputPlainText` widget.
|
||||
* Addition of `formatInputs` parameter to `FlutterFormInputPassword` widget.
|
||||
* Addition of `formatInputs` parameter to `FlutterFormInputPassword` widget.
|
||||
|
||||
## 2.5.2
|
||||
* Addition of `style` parameter to `FlutterFormInputPassword` widget.
|
|
@ -10,6 +10,7 @@ import 'package:flutter/services.dart';
|
|||
class FlutterFormInputPassword extends StatefulWidget {
|
||||
final Widget? label;
|
||||
final FocusNode? focusNode;
|
||||
final TextStyle? style;
|
||||
final String? initialValue;
|
||||
final List<TextInputFormatter>? inputFormatters;
|
||||
final Function(String?)? onSaved;
|
||||
|
@ -22,6 +23,7 @@ class FlutterFormInputPassword extends StatefulWidget {
|
|||
Key? key,
|
||||
this.label,
|
||||
this.focusNode,
|
||||
this.style,
|
||||
this.initialValue,
|
||||
this.inputFormatters,
|
||||
this.onSaved,
|
||||
|
@ -41,6 +43,7 @@ class _PasswordTextFieldState extends State<FlutterFormInputPassword> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return TextFormField(
|
||||
style: widget.style,
|
||||
initialValue: widget.initialValue,
|
||||
inputFormatters: widget.inputFormatters,
|
||||
obscureText: obscured,
|
||||
|
|
Loading…
Reference in a new issue