Skip to content

Commit

Permalink
add textAlignVertical
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanschaller committed Sep 29, 2023
1 parent 2edeb1d commit 42a57d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/text_field/base_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class BaseTextField extends StatefulWidget {
/// Defines the state of the keyboard (uppercase or lowercase) when selecting the TextField
final TextCapitalization textCapitalization;

final TextAlignVertical textAlignVertical;

const BaseTextField({
required this.text,
required this.onChanged,
Expand Down Expand Up @@ -86,6 +88,7 @@ class BaseTextField extends StatefulWidget {
this.autocorrect = true,
this.enableSuggestions = true,
this.inputFormatter,
this.textAlignVertical = TextAlignVertical.center,
Key? key,
}) : super(key: key);

Expand Down Expand Up @@ -146,6 +149,7 @@ class BaseTextFieldState extends State<BaseTextField>

return TextFormField(
key: _formFieldKey,
textAlignVertical: widget.textAlignVertical,
minLines: widget.minLines,
maxLines: widget.maxLines,
maxLength: widget.maxLength,
Expand Down

0 comments on commit 42a57d8

Please sign in to comment.