I am making a loading screen so I after I request some endpoints I want to push to the home page
when I call my normal Navigator.push function I get
Unhandled Exception: Navigator operation requested with a context that does not include a Navigator. E/flutter ( 5168): The context used to push or pop routes from the Navigator must be that of a widget that is a descendant of a Navigator widget.
I have tried wrapping it inWidgetsBinding.instance.addPostFrameCallback((_)
using Navigator.pushReplacement
as well as trying waiting one second on top of the endpoint to no fix.
Tentamens is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.