lzhuor / auto_size_text_field

Flutter TextField widget that automatically resizes text field to fit perfectly within its bounds.
https://pub.dev/packages/auto_size_text_field
MIT License
52 stars 35 forks source link

Auto size won't work after a rebuild #43

Open gentunian opened 1 year ago

gentunian commented 1 year ago

Here's a repo with a minimal reproduction: https://github.com/gentunian/flutter-autosizetextfield-bug

When a rebuild is trigger, the auto size won't work.

Also, I have seeing that while using the ios simulator, the autosize won't work on a re-run.

EDIT: with "re-run" I wanted to say hotreload

ghost commented 1 year ago

I am also facing the same issue on Android. This package is just useless. You can simply use IntrinsicWidth widget as a parent of textfield to increase its size automatically

lzhuor commented 1 year ago

Hi @gentunian thank you for reporting the issue. I will have a look when having bandwidth.