Skip to content

enableSuggestions: false does not reliably suppress Gboard autocomplete suggestions on Android / ChromeOS #182535

Description

@toineheuvelmans

Steps to reproduce

  1. Create an EditableText (or TextField) with:

    EditableText(
      autocorrect: false,
      enableSuggestions: false,
      enableIMEPersonalizedLearning: false,
      // ...
    )
  2. Build for Flutter Web and open in Chrome on an Android tablet (with Gboard as the on-screen keyboard).

  3. Tap the text field and begin typing.

This also reproduces on ChromeOS devices (which use Gboard for their on-screen keyboard) and likely on native Android, but our primary affected platform is Flutter Web on Chrome for Android tablets.

Expected results

The onscreen keyboard (Gboard) suggestion strip (predictive text bar above the keyboard) should be hidden or empty. No autocomplete suggestions should appear.

Actual results

Gboard still displays autocomplete suggestions in the suggestion strip despite all three suppression flags being set to their "off" values.

Code sample

Code sample
import 'package:flutter/material.dart';

void main() => runApp(const MaterialApp(home: AutocompleteBugDemo()));

class AutocompleteBugDemo extends StatelessWidget {
  const AutocompleteBugDemo({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Gboard suggestion bug')),
      body: const Padding(
        padding: EdgeInsets.all(16),
        child: TextField(
          autocorrect: false,
          enableSuggestions: false,
          enableIMEPersonalizedLearning: false,
          keyboardType: TextInputType.visiblePassword,
          spellCheckConfiguration: SpellCheckConfiguration.disabled(),
          autofillHints: [AutofillHints.oneTimeCode],
          decoration: InputDecoration(
            labelText: 'Type here - Gboard suggestions should not appear',
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Logs

No response

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.38.4, on macOS 26.2 25C56 darwin-arm64, locale en-NL)
    • Flutter version 3.38.4 on channel stable at ~/.asdf/installs/flutter/3.38.4
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 66dd93f9a2 (3 months ago), 2025-12-03 14:56:10 -0800
    • Engine revision a5cb96369e
    • Dart version 3.10.3
    • DevTools version 2.51.1

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at ~/Library/Android/sdk
    • Platform android-36, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 26.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17C52
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (3 available)
    • iPad Pro 11-inch (M4) (mobile) • ios            • com.apple.CoreSimulator.SimRuntime.iOS-26-0 (simulator)
    • macOS (desktop)                • darwin-arm64   • macOS 26.2 25C56 darwin-arm64
    • Chrome (web)                   • web-javascript • Google Chrome 145.0.7632.76

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsplatform-androidAndroid applications specificallyteam-webOwned by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions