enable web, mobile & desktop spell check
This commit is contained in:
@@ -125,6 +125,7 @@ class _MihSearchBarState extends State<MihSearchBar> {
|
||||
child: TextField(
|
||||
controller: widget.controller, // Assign the controller
|
||||
focusNode: widget.searchFocusNode,
|
||||
autocorrect: true,
|
||||
spellCheckConfiguration: kIsWeb ? null : SpellCheckConfiguration(),
|
||||
onSubmitted: (value) {
|
||||
widget.onPrefixIconTap
|
||||
|
||||
@@ -153,6 +153,7 @@ class _MihTextFormFieldState extends State<MihTextFormField> {
|
||||
controller: widget.controller,
|
||||
cursorColor: widget.inputColor,
|
||||
autofillHints: widget.autofillHints,
|
||||
autocorrect: true,
|
||||
spellCheckConfiguration: (kIsWeb ||
|
||||
widget.passwordMode == true ||
|
||||
widget.numberMode == true)
|
||||
|
||||
Reference in New Issue
Block a user