How to close app on device back button in flutter?

Posted by Andre Scott | Updated on

Want to close app on device back button in flutter? What you need to do is first clear all path before going to login() screen.

Try this example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers