Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+ 0015 Flutter添加(复制粘贴等)的多语言支持后,长按输入框,中文复制粘贴pop文字显示不全怎么解决? #37

Open
zhousongchao opened this issue May 23, 2020 · 5 comments
Labels
point The point of Flutter

Comments

@zhousongchao
Copy link

长按输入框,复制粘贴pop文字显示不全,英文环境下没问题

@zhousongchao
Copy link
Author

自己回答一下,这个bug是在ThemeData的platform为TargetPlatform.iOS时flutter源码flutter\lib\src\cupertino\text_selection.dart中没考虑到实际文字高度导致中文(复制粘贴等)显示不全,临时的处理方式为修改text_selection.dart源码中_kToolbarHeight = 43.0改为45.0,如有更好的处理方式,请告知

@toly1994328 toly1994328 added the point The point of Flutter label Jun 5, 2020
@Passbys
Copy link

Passbys commented Nov 13, 2023

最新版本会出现长按输入框,复制粘贴弹出文字显示不全。

@Passbys
Copy link

Passbys commented Nov 14, 2023

环境:
Flutter 3.13.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d211f42860 (3 周前) • 2023-10-25 13:42:25 -0700
Engine • revision 0545f8705d
Tools • Dart 3.1.5 • DevTools 2.25.0
解决方案:
找到packages/flutter/lib/src/cupertino/text_selection_toolbar_button.dart文件,
变量_kToolbarButtonPadding 的vertical 原本 18,改为16就可以展示完全了

@xiaochenghua
Copy link

xiaochenghua commented May 29, 2024

请问 问题解决了吗?我这边 3.13.6 也有这个问题 @Passbys @zhousongchao

@xiaochenghua
Copy link

看起来 flutter 在 3.16.0 已经修复了这个BUG
flutter/flutter#133386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
point The point of Flutter
Projects
None yet
Development

No branches or pull requests

4 participants