From 505bceb887a6ea34d67e5659458523cc5ecc8aa0 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 9 Aug 2021 08:35:45 -0700 Subject: [PATCH] Enable incognito keyboard on android --- lib/views/messageview.dart | 1 + lib/widgets/buttontextfield.dart | 1 + lib/widgets/passwordfield.dart | 1 + lib/widgets/textfield.dart | 1 + 4 files changed, 4 insertions(+) diff --git a/lib/views/messageview.dart b/lib/views/messageview.dart index 000e327e..9fd52f31 100644 --- a/lib/views/messageview.dart +++ b/lib/views/messageview.dart @@ -187,6 +187,7 @@ class _MessageViewState extends State { autofocus: !Platform.isAndroid, textInputAction: TextInputAction.newline, keyboardType: TextInputType.multiline, + enableIMEPersonalizedLearning: false, minLines: 1, maxLines: null, onFieldSubmitted: _sendMessage, diff --git a/lib/widgets/buttontextfield.dart b/lib/widgets/buttontextfield.dart index e7483361..46e88796 100644 --- a/lib/widgets/buttontextfield.dart +++ b/lib/widgets/buttontextfield.dart @@ -37,6 +37,7 @@ class _CwtchButtonTextFieldState extends State { readOnly: widget.readonly, showCursor: !widget.readonly, focusNode: _focusNode, + enableIMEPersonalizedLearning: false, decoration: InputDecoration( suffixIcon: IconButton( onPressed: widget.onPressed, diff --git a/lib/widgets/passwordfield.dart b/lib/widgets/passwordfield.dart index 4cf061b8..acd79787 100644 --- a/lib/widgets/passwordfield.dart +++ b/lib/widgets/passwordfield.dart @@ -37,6 +37,7 @@ class _CwtchTextFieldState extends State { controller: widget.controller, validator: widget.validator, obscureText: obscureText, + enableIMEPersonalizedLearning: false, autofillHints: widget.autoFillHints, autovalidateMode: AutovalidateMode.always, onFieldSubmitted: widget.action, diff --git a/lib/widgets/textfield.dart b/lib/widgets/textfield.dart index c1be445d..64b4f020 100644 --- a/lib/widgets/textfield.dart +++ b/lib/widgets/textfield.dart @@ -39,6 +39,7 @@ class _CwtchTextFieldState extends State { validator: widget.validator, onChanged: widget.onChanged, autofocus: widget.autofocus, + enableIMEPersonalizedLearning: false, focusNode: _focusNode, decoration: InputDecoration( labelText: widget.labelText, -- 2.25.1