The problem was encountered in an android project.
- I navigate from screen1 to screen2 with the Navigator.push method.
- Then from screen2, I move to screen3 with the Navigator.pushReplacement method.
When I press back button at screen3, the first button press is ignored and the second button press takes me to the screen1.
It is evident from the response of the back button that, there is an empty slot in the stack. If I call Navigator.pop after Navigator.pushReplacement the problem get resolved but momentarily it goes to the screen1 before it shows the screen3.