Skip to content

Spellcheck for EditableText on iOS/Android #34688

Description

@LongCatIsLooong

Related Issue: #12920 autocorrection
Related UIKit documentation: https://developer.apple.com/documentation/uikit/uitextinputtraits/1624461-spellcheckingtype

  • Red underline to mark misspelled words
  • Spellcheck on typing & double-tap selection & caret moving, etc.
  • When a word is marked misspelled, show correction candidate list bubble on:
    • Single tap
    • Moving the caret to the end of the word by pressing backspace.

Activity

  1. added
    a: text inputEntering text in a text field or keyboard related problems
    platform-iosiOS applications specifically
    c: new featureNothing broken; request for a new capability
    on Jun 19, 2019
  2. HansMuller commented on Nov 27, 2019

    @HansMuller
    Contributor

    Android also supports a spell checking service: https://developer.android.com/guide/topics/text/spell-checker-framework

  3. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    platform-androidAndroid applications specifically
    on Jan 16, 2020
  4. added
    platform-androidAndroid applications specifically
    platform-iosiOS applications specifically
    and removed
    platform-androidAndroid applications specifically
    platform-iosiOS applications specifically
    on Mar 5, 2020
  5. ajviera commented on Jul 24, 2020

    @ajviera

    Any news on this issue? It would be ideal to be able to have this so that the applications are more similar to the native ones.

  6. changed the title [-]Spellcheck for EditableText on iOS[/-] [+]Spellcheck for EditableText on iOS/Android[/+] on Sep 2, 2020
  7. 25 remaining items

  8. camsim99 commented on Aug 26, 2022

    @camsim99
    Contributor

    This is still in progress. Part of Android support was added in #109643 and iOS is on the way #110193. I'll update this issue when full support for both is completed.

  9. mohamedali170 commented on Oct 16, 2022

    @mohamedali170

    Hi @camsim99,
    Any updates?

  10. camsim99 commented on Oct 24, 2022

    @camsim99
    Contributor

    @mohamedali170 Android and iOS both have partial implementation. Implementation of the red underline and the toolbar with suggestions for Android and iOS is expected around EOY. I'll update this issue when more pieces of the implementation land!

  11. mohamedali170 commented on Oct 25, 2022

    @mohamedali170

    Well, thanks very much for your efforts @camsim99 . I hope you can finish the remaining implementation in the near future.

  12. camsim99 commented on Dec 22, 2022

    @camsim99
    Contributor

    Just wanted to update here that I have merged the remaining implementation on Android into the master branch as of : #114460. Still working on somethings related to testing, though, as well as iOS!

  13. blopker commented on Dec 22, 2022

    @blopker

    Nice! Do you have an idea which version this might land in?

  14. camsim99 commented on Dec 22, 2022

    @camsim99
    Contributor

    Nice! Do you have an idea which version this might land in?

    @blopker This should probably be in the next stable release if not the next beta release. Eventually, you can look for a version number on the merge commit of my latest PR, but it's not tagged now: e0742eb.

  15. jonbhanson commented on Jan 25, 2023

    @jonbhanson

    It appears this feature has landed in Flutter 3.7. To use it, add this parameter to your EditableText or TextField:

    spellCheckConfiguration: kIsWeb ? null : SpellCheckConfiguration()

    (The spell check configuration currently seems to break on web)

  16. blopker commented on Jan 26, 2023

    @blopker

    Good progress! Sad news about web though. Hopefully we won't have to wait until another point release for it.

  17. camsim99 commented on Jan 30, 2023

    @camsim99
    Contributor

    It appears this feature has landed in Flutter 3.7. To use it, add this parameter to your EditableText or TextField:

    spellCheckConfiguration: kIsWeb ? null : SpellCheckConfiguration()

    (The spell check configuration currently seems to break on web)

    @jonbhanson yes, spell check is partially implemented on both! Thank you for pointing out the crash on web. Filed an issue to follow up on better solutions for crashing in that case #119542

  18. durbek03 commented on Mar 22, 2023

    @durbek03
  19. leighajarett commented on May 12, 2023

    @leighajarett
    Contributor

    Closing this since it's now complete for iOS and Android as of 3.10

  20. github-actions commented on May 26, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  21. locked as resolved and limited conversation to collaborators on May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityengineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specificallyplatform-iosiOS applications specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions