talamaska / onboarding_overlay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Responsive Framework Bug

JakeJazokas opened this issue · comments

commented

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.

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?

commented

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.

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