mirror of
https://github.com/Iconica-Development/flutter_input_library.git
synced 2025-05-18 17:03:45 +02:00
Merge pull request #3 from Iconica-Development/feature/added_style_to_textfield
added style to textfield
This commit is contained in:
commit
13067633de
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,7 @@ class FlutterFormInputPlainText extends ConsumerWidget {
|
||||||
this.onSaved,
|
this.onSaved,
|
||||||
this.validator,
|
this.validator,
|
||||||
this.onFieldSubmitted,
|
this.onFieldSubmitted,
|
||||||
|
this.style,
|
||||||
}) : super(
|
}) : super(
|
||||||
key: key,
|
key: key,
|
||||||
);
|
);
|
||||||
|
@ -39,6 +40,7 @@ class FlutterFormInputPlainText extends ConsumerWidget {
|
||||||
final String? Function(String?)? validator;
|
final String? Function(String?)? validator;
|
||||||
final Function(String?)? onChanged;
|
final Function(String?)? onChanged;
|
||||||
final Function(String?)? onFieldSubmitted;
|
final Function(String?)? onFieldSubmitted;
|
||||||
|
final TextStyle? style;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
|
@ -48,6 +50,7 @@ class FlutterFormInputPlainText extends ConsumerWidget {
|
||||||
);
|
);
|
||||||
|
|
||||||
return TextFormField(
|
return TextFormField(
|
||||||
|
style: style,
|
||||||
scrollPadding: scrollPadding ?? const EdgeInsets.all(20.0),
|
scrollPadding: scrollPadding ?? const EdgeInsets.all(20.0),
|
||||||
initialValue: initialValue,
|
initialValue: initialValue,
|
||||||
onSaved: (value) => onSaved?.call(value),
|
onSaved: (value) => onSaved?.call(value),
|
||||||
|
|
Loading…
Reference in a new issue