diff --git a/mobile/lib/ui/components/dialog_widget.dart b/mobile/lib/ui/components/dialog_widget.dart index 2d8fe96b75..0dbf491177 100644 --- a/mobile/lib/ui/components/dialog_widget.dart +++ b/mobile/lib/ui/components/dialog_widget.dart @@ -282,7 +282,7 @@ class _TextInputDialogState extends State { isPasswordInput: widget.isPasswordInput, textEditingController: _textEditingController, textInputFormatter: widget.textInputFormatter, - textInputType: widget.textInputType, + keyboardType: widget.textInputType, ), ), const SizedBox(height: 36), diff --git a/mobile/lib/ui/components/text_input_widget.dart b/mobile/lib/ui/components/text_input_widget.dart index 5b3787035d..965de67c48 100644 --- a/mobile/lib/ui/components/text_input_widget.dart +++ b/mobile/lib/ui/components/text_input_widget.dart @@ -48,8 +48,9 @@ class TextInputWidget extends StatefulWidget { final TextEditingController? textEditingController; final ValueNotifier? isEmptyNotifier; final List? textInputFormatter; - final TextInputType? textInputType; + final TextInputType? keyboardType; final bool enableFillColor; + final bool autoCorrect; const TextInputWidget({ this.onSubmit, this.onChange, @@ -77,8 +78,9 @@ class TextInputWidget extends StatefulWidget { this.textEditingController, this.isEmptyNotifier, this.textInputFormatter, - this.textInputType, + this.keyboardType, this.enableFillColor = true, + this.autoCorrect = true, super.key, }); @@ -155,7 +157,7 @@ class _TextInputWidgetState extends State { borderRadius: BorderRadius.all(Radius.circular(widget.borderRadius)), child: Material( child: TextFormField( - keyboardType: widget.textInputType, + keyboardType: widget.keyboardType, textCapitalization: widget.textCapitalization!, autofocus: widget.autoFocus ?? false, autofillHints: @@ -223,6 +225,7 @@ class _TextInputWidgetState extends State { onEditingComplete: () { _onSubmit(); }, + autocorrect: widget.autoCorrect, ), ), ),