Open satoyan opened 11 months ago
Yes, I have this problem too, is there any solution?
same here. But as a temporary solution, i use smth like this
void onVisibilityChanged(VisibilityInfo info) {
// fires on keayboard appearance
if (info.visibleFraction == 1 && needToReload) {
needToReload= false;
loadTimeZoneList();
loadSelf();
}
if (info.visibleFraction == 0) {
needToReload= true;
}
}
Problem description
This is about VisibilityDetector. This widget fires 'onVisibilitychanged' event when any widget is on over its navigator route. every time virtual keyboard appears and disappears , VisibilityDetector under any widget's route will detect its visibiltychange and fires .
Steps to reproduce
Expected behavior
do not fire onVisibiliyChanged event
Actual behavior
fires onVisibilityChanged event
Environment
Flutter 3.16.2
both android , ios
thank you.