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
|
## 2.5.1
|
||||||
* Addition of `formatInputs` parameter to `FlutterFormInputPlainText` widget.
|
* 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 {
|
class FlutterFormInputPassword extends StatefulWidget {
|
||||||
final Widget? label;
|
final Widget? label;
|
||||||
final FocusNode? focusNode;
|
final FocusNode? focusNode;
|
||||||
|
final TextStyle? style;
|
||||||
final String? initialValue;
|
final String? initialValue;
|
||||||
final List<TextInputFormatter>? inputFormatters;
|
final List<TextInputFormatter>? inputFormatters;
|
||||||
final Function(String?)? onSaved;
|
final Function(String?)? onSaved;
|
||||||
|
@ -22,6 +23,7 @@ class FlutterFormInputPassword extends StatefulWidget {
|
||||||
Key? key,
|
Key? key,
|
||||||
this.label,
|
this.label,
|
||||||
this.focusNode,
|
this.focusNode,
|
||||||
|
this.style,
|
||||||
this.initialValue,
|
this.initialValue,
|
||||||
this.inputFormatters,
|
this.inputFormatters,
|
||||||
this.onSaved,
|
this.onSaved,
|
||||||
|
@ -41,6 +43,7 @@ class _PasswordTextFieldState extends State<FlutterFormInputPassword> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return TextFormField(
|
return TextFormField(
|
||||||
|
style: widget.style,
|
||||||
initialValue: widget.initialValue,
|
initialValue: widget.initialValue,
|
||||||
inputFormatters: widget.inputFormatters,
|
inputFormatters: widget.inputFormatters,
|
||||||
obscureText: obscured,
|
obscureText: obscured,
|
||||||
|
|
Loading…
Reference in a new issue