Enable incognito keyboard on android #142

Merged
dan merged 3 commits from disable-ime-learning into trunk 2021-08-17 20:57:23 +00:00
4 changed files with 4 additions and 0 deletions

View File

@ -212,6 +212,7 @@ class _MessageViewState extends State<MessageView> {
autofocus: !Platform.isAndroid, autofocus: !Platform.isAndroid,
textInputAction: TextInputAction.newline, textInputAction: TextInputAction.newline,
keyboardType: TextInputType.multiline, keyboardType: TextInputType.multiline,
enableIMEPersonalizedLearning: false,
minLines: 1, minLines: 1,
maxLines: null, maxLines: null,
onFieldSubmitted: _sendMessage, onFieldSubmitted: _sendMessage,

View File

@ -37,6 +37,7 @@ class _CwtchButtonTextFieldState extends State<CwtchButtonTextField> {
readOnly: widget.readonly, readOnly: widget.readonly,
showCursor: !widget.readonly, showCursor: !widget.readonly,
focusNode: _focusNode, focusNode: _focusNode,
enableIMEPersonalizedLearning: false,
decoration: InputDecoration( decoration: InputDecoration(
suffixIcon: IconButton( suffixIcon: IconButton(
onPressed: widget.onPressed, onPressed: widget.onPressed,

View File

@ -37,6 +37,7 @@ class _CwtchTextFieldState extends State<CwtchPasswordField> {
controller: widget.controller, controller: widget.controller,
validator: widget.validator, validator: widget.validator,
obscureText: obscureText, obscureText: obscureText,
enableIMEPersonalizedLearning: false,
autofillHints: widget.autoFillHints, autofillHints: widget.autoFillHints,
autovalidateMode: AutovalidateMode.always, autovalidateMode: AutovalidateMode.always,
onFieldSubmitted: widget.action, onFieldSubmitted: widget.action,

View File

@ -39,6 +39,7 @@ class _CwtchTextFieldState extends State<CwtchTextField> {
validator: widget.validator, validator: widget.validator,
onChanged: widget.onChanged, onChanged: widget.onChanged,
autofocus: widget.autofocus, autofocus: widget.autofocus,
enableIMEPersonalizedLearning: false,
focusNode: _focusNode, focusNode: _focusNode,
decoration: InputDecoration( decoration: InputDecoration(
labelText: widget.labelText, labelText: widget.labelText,