Navigator operation requested with a context that does not include a Navigator. navigator.push code example
Example: Navigator operation requested with a context that does not include a Navigator.
refrence :
https://stackoverflow.com/questions/44004451/navigator-operation-requested-with-a-context-that-does-not-include-a-navigator