I want to navigate the user to home screen and delete the previous navigation stack after pressed some button on another screen. For the time being I used Navigator.pushNamedAndRemoveUntil method for that. but the case is when I pressed the device back button on home screen my application crash So I wand to handle or override the device back button action.