Skip to content

TextField with Chinese character. #23934

Description

@yohom

When entering Chinese character, the cursor height is too short.

screen shot 2018-11-05 at 16 03 51

flutter doctor:

[✓] Flutter (Channel dev, v0.10.2, on Mac OS X 10.14.1 18B50c, locale en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[!] IntelliJ IDEA Ultimate Edition (version 2018.2.5)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
[✓] VS Code (version 1.28.2)
[✓] Connected device (2 available)

Activity

  1. kyleorin commented on Nov 5, 2018

    @kyleorin

    Can you confirm this occurs on iOS too?

  2. yohom commented on Nov 5, 2018

    @yohom
    Author

    Yes, this occurs on iOS too.
    simulator screen shot - iphone xr - 2018-11-05 at 21 08 30

  3. zoechi commented on Nov 6, 2018

    @zoechi
    Contributor

    Somewhat related #20694, #7034, #18888

  4. added
    a: text inputEntering text in a text field or keyboard related problems
    frameworkflutter/packages/flutter repository. See also f: labels.
    a: fidelityMatching the OEM platforms better
    on Nov 6, 2018
  5. added this to the milestone on Nov 6, 2018
  6. zywj commented on Nov 7, 2018

    @zywj

    you can solve the problem by setting chinese font family like HeiTi SC on iOS platform.

  7. yohom commented on Nov 8, 2018

    @yohom
    Author

    @zywj Thank you for your solution! Solved my problem and it worked on the android platform, too.

  8. HansMuller commented on Nov 12, 2018

    @HansMuller
    Contributor

    @GaryQian - this sounds like some of the issues you've been looking at

  9. GaryQian commented on Nov 15, 2018

    @GaryQian
    Contributor

    A fix for this is being worked on: #24265

  10. xia-weiyang commented on Nov 26, 2018

    @xia-weiyang

    I hope to solve this problem as soon as possible, thank!

  11. hahafather007 commented on Dec 10, 2018

    @hahafather007

    @zywj感谢您的解决方案!解决了我的问题,它也在Android平台上运行。

    @yohom 这是怎么解决的,能说下嘛。怎么设置HeiTi SC

  12. yohom commented on Dec 10, 2018

    @yohom
    Author

    @hahafather007

    1. 在pubspec.yaml中添加字体(add fonts in pubspec.yaml):
    flutter:
      fonts:
        - family: DroidSansFallback # 其他字体也可以(Other fonts will do)
          fonts:
            - asset: fonts/DroidSansFallback.ttf
    1. MaterialApp中配置全局字体(configures the global font in MaterialApp):
    MaterialApp(
      theme: ThemeData(fontFamily: 'DroidSansFallback'),
    )
  13. 6 remaining items

  14. no-response commented on Mar 13, 2019

    @no-response

    Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
    Thanks for your contribution.

  15. yohom commented on Mar 13, 2019

    @yohom
    Author

    With master channel and flutter doctor -v below, this bug still exists on android(fixed in iOS). @zoechi please reopen this issue.
    6EB8FE5904AF9881EBB4D825D6D8D83E

    [✓] Flutter (Channel master, v1.3.10-pre.29, on Mac OS X 10.14.3 18D109, locale en-CN)
        • Flutter version 1.3.10-pre.29 at /Users/yohom/Library/Flutter/flutter
        • Framework revision 89a51272d5 (5 hours ago), 2019-03-12 18:32:42 -0700
        • Engine revision 5ccee95373
        • Dart version 2.2.1 (build 2.2.1-dev.1.0 674fd0e060)
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
        • Android SDK at /Users/yohom/Library/Android/sdk
        • Android NDK location not configured (optional; useful for native profiling support)
        • Platform android-28, build-tools 28.0.3
        • ANDROID_HOME = /Users/yohom/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
        • All Android licenses accepted.
    
    [✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 10.1, Build version 10B61
        • ios-deploy 1.9.4
        • CocoaPods version 1.6.0.beta.2
    
    [✓] Android Studio (version 3.3)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin version 33.3.1
        • Dart plugin version 182.5215
        • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    
    [✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5)
        • IntelliJ at /Applications/IntelliJ IDEA.app
        • Flutter plugin version 33.3.2
        • Dart plugin version 183.5912.23
    
    [✓] VS Code (version 1.32.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 2.24.0
    
  16. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 13, 2019
  17. QueryStyle commented on Mar 22, 2019

    @QueryStyle

    the cursor is not aligned

  18. GaryQian commented on Mar 22, 2019

    @GaryQian
    Contributor

    @justinmc @jslavitz This may be of interest to one of you? I might take a second shot at it if I get some time too.

  19. justinmc commented on Mar 25, 2019

    @justinmc
    Contributor

    This is on my radar for text selection improvements.

  20. GaryQian commented on Apr 12, 2019

    @GaryQian
    Contributor

    #30991 Should fix this for Android. It seems to be fine on iOS.

  21. PandaGeek1024 commented on Apr 21, 2019

    @PandaGeek1024

    @GaryQian checkout the master branch and it works. Thanks for saving us.

  22. github-actions commented on Aug 14, 2021

    @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.

  23. locked as resolved and limited conversation to collaborators on Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: fidelityMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.waiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions