Closed shreejeetp closed 1 year ago
Use it to get screen data
This line is causing issues in latest release in regards to opening the keyboard and app rebuilding. cant we just do a init with screen dimensions and update on change and not set it for whole app?
The latest version will only cause the components of the current dialog class to be rebuilt, and will not cause the application to be rebuilt. try that plz
I've tried the latest one (5.8.4). Unfortunately, its rebuilding the whole app for me. I've initialised ScreenUtilInit on top of material app and when the keyboard opens, it refreshes the whole app and the textfield also looses focus resulting in keyboard being closed.
Edit: I just wanted to add that it only rebuilds when useInheritedMediaQuery is set, but if its not set, the keyboard doesn't shift the app up when its opened.
I've tried the latest one (5.8.4). Unfortunately, its rebuilding the whole app for me. I've initialised ScreenUtilInit on top of material app and when the keyboard opens, it refreshes the whole app and the textfield also looses focus resulting in keyboard being closed.
Edit: I just wanted to add that it only rebuilds when useInheritedMediaQuery is set, but if its not set, the keyboard doesn't shift the app up when its opened.
Choose any of the following to rebuild when the keyboard opens:
Reference:
https://github.com/flutter/flutter/pull/116090#issuecomment-1356014347
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
I was looking up the code of the library. Im using v 5.2.0 rn. At the top, you guys are using MediaQuery to set mediaquery data, but i cant see where is the need to set the mediaquery data here. Apologies if this isn't the right place to ask.
Reference code: