flutter_code_input icon indicating copy to clipboard operation
flutter_code_input copied to clipboard

text not clearing when SetState Rebuilding

Open jaydip-pawar opened this issue 4 years ago • 1 comments

I am using timer in my code, that's why i have to call SetState every second, but problem is that The text does not clear until the timer stops, when timer stops it work fine like I can add text and clear it, but when I Start my timer I can add text but can't delete it.

https://drive.google.com/file/d/10jd4Y-cFddBP7k9TgENgKyoyfPJc65cx/view?usp=sharing

jaydip-pawar avatar Jun 20 '21 20:06 jaydip-pawar

Its so annoying issue once i realized he didn't make the plugin with TextEditController to at least get the value or clear the text in correct way.

for now, you can add key: UniqueKey() to clear the text

nizwar avatar Sep 14 '22 11:09 nizwar