talamaska / onboarding_overlay

MIT License
42 stars 22 forks source link

Responsive Framework Bug #48

Open JakeJazokas opened 1 year ago

JakeJazokas commented 1 year ago

Using the solution provided in #33 works, however when using a ResponsiveWrapper within the builder : of MaterialApp instead of wrapping home : with the ResponsiveWrapper, the line Overlay.of(context, rootOverlay: widget.globalOnboarding) within OnboardingState evaluates to null.

talamaska commented 1 year ago

Well that's unfortunate. I'm not sure why in MaterialApp builder context there is no OverlayState MaterialApp, which inserts an Overlay widget indirectly via its Navigator.

Could you check if in that builder you have access to Navigator.of(context) and it is not null?

JakeJazokas commented 1 year ago

When I try to access Navigator.of(context) within the builder I get the error Navigator operation requested with a context that does not include a Navigator.

talamaska commented 1 year ago

Ok then, you must provide an overlay some other way.