Closed Khawlah-Mohammed closed 1 year ago
Sorry, it is an issue with something els.
Sorry, it is an issue with something els.
Can you tell me what went wrong? I had the same problem, you know? thank you
@842787863 ,just define your FormKey/TextEditingController outside, not inside the closure!
Thanks, I have done that and it solved the problem.
@Heilum Thanks! I solved this problem after replacing MediaQuery with LayoutBuilder, TextEditing is not refreshing other widgets
@842787863 ,just define your FormKey/TextEditingController outside, not inside the closure!
Hi! Could you give me a small example of what you're trying to explain? I'm trying to tackle the same problem and don't know what to do. Also, I'm using TextEditingController through flutter_hooks.
Thanks in advance!
@janek515 Hi, flutter_screenutil uses MediaQuery to get the screen size, using MediaQuery will refresh the widget when the screen size changes, this problem causes the keyboard to refresh the widget when it pops up, I use LayoutBuilder to get the screen size instead to solve this problem, also I haven't used flutter_hooks, I can't give you advice sorry
@842787863 Hi, thanks for your answer, I was able to figure it out, the solution in my case was here https://github.com/OpenFlutter/flutter_screenutil/issues/484#issuecomment-1590254340
I have some TextFormField inside dialog .. while trying to write on them the keyboard is shown and closed immediately.