slovnicki / beamer

A routing package built on top of Router and Navigator's pages API, supporting arbitrary nested navigation, guards and more.
MIT License
582 stars 128 forks source link

resizeToAvoidBottomInset and MediaQuery not reporting changes with keyboard focuses. #633

Closed mattsrobot closed 9 months ago

mattsrobot commented 10 months ago

I've recently upgraded to Flutter 3.13 from 3.7, I've noticed that whenever a widget is part of a Beamer router, within the widget build method, widgets don't rebuild when a MediaQuery is requested and keyboard appears / hides.

If I place the MediaQuery in the main.dart, it is detected, but if the page is shown as part of a Beamer location, the build method isn't triggered when the MediaQuery changes

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.0, on macOS 13.4.1 22F770820d darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.81.1)