Open JakeJazokas opened 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?
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.
Using the solution provided in #33 works, however when using a ResponsiveWrapper within the
builder :
of MaterialApp instead of wrappinghome :
with the ResponsiveWrapper, the lineOverlay.of(context, rootOverlay: widget.globalOnboarding)
withinOnboardingState
evaluates to null.