Concept used is of # onWillPop a callback method that returns a Future value; if true, the screen can be popped; if false, the screen will not be popped out , so overriding it and making it false will do the job !
Video Preview for the same :
Untitled.design.mp4
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.