I have a flutter app in which when opened it opens the splash screen and then the home page.
when I'm in the home page and I click Android's back button nothing happens since I used this code:
new WillPopScope(
onWillPop: () async => false,
child:Directionality(
textDirection: direction,
child:...
)
)
but I want the application to exit if I clicked the back button in Android from the home page.
is there's a way to achieve this?