fluttercandies / extended_text_field

extended official text field to quickly build special text like inline image, @somebody, custom background etc.
MIT License
554 stars 146 forks source link

[Bug report] 图片放入 ExtendedTextField 中,图片高度不会充满行高,图片超过行高时,会挡住上一行的文字 #239

Open zhouzhuo810 opened 1 month ago

zhouzhuo810 commented 1 month ago

Version

14.0.0

Platforms

macOS

Device Model

MacOS 14.2.1 (23C71)

flutter info

[✓] Flutter (Channel stable, 3.19.6, on macOS 14.2.1 23C71 darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.19.6 on channel stable at /Users/zhouzhuo810/flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (3 months ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

How to reproduce?

image

Logs

No response

Example code (optional)

No response

Contact

No response

ChanKen commented 1 month ago

遇到同样的问题。设置ExtendedTextField的strutStyle属性值为,const StrutStyle() 。可以解决你这个显示问题。但又会有另一个问题,当输入框中只有图片时,下一行行高会根据“图片”的高度显示,直到出现一个问题。正在尝试寻找解决这个问题的方案