Skip to content

[Bug report] extendedSpellCheckConfiguration doesn't work if specialTextSpanBuilder is enabled #261

@ihijazi

Description

@ihijazi

Version

16.0.2

Platforms

Android, iOS

Device Model

iPhone 12 Pro and other devices as well

flutter info

[✓] Flutter (Channel stable, 3.29.3, on macOS 14.6.1 23G93 darwin-x64, locale en-AU) [927ms]
    • Flutter version 3.29.3 on channel stable at /Applications/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ea121f8859 (3 weeks ago), 2025-04-11 19:10:07 +0000
    • Engine revision cf56914b32
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [4.3s]
    • Android SDK at /Users/ihijazi/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915915-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [2.2s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [39ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2) [36ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915915-b509.11)

[✓] Android Studio (version 2023.1) [33ms]
    • Android Studio at /Applications/Android Studio-Hedgehog.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.99.3) [32ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.110.0

[✓] Connected device (5 available) [7.5s]
• iOS 17.6.1 21G93
    • iPhone 16 Pro (mobile)            • 1AE47BAB-B456-439B-86B4-87BDAD1D914C • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-2 (simulator)
    • macOS (desktop)                   • macos                                • darwin-x64     • macOS 14.6.1 23G93 darwin-x64

[✓] Network resources [1,375ms]
    • All expected network resources are available.

• No issues found!

How to reproduce?

Simply enable specialTextSpanBuilder.

Spell check won't work, even when configured. e.g:
extendedSpellCheckConfiguration: const ExtendedSpellCheckConfiguration(
misspelledTextStyle: TextStyle(
decoration: TextDecoration.underline,
decorationColor: Colors.red,
decorationStyle: TextDecorationStyle.wavy,
),

Tested in the example/demo app, same results.

Logs

Example code (optional)

Contact

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions