Get Android Back Button event #37726
Labels
c: new feature
Nothing broken; request for a new capability
framework
flutter/packages/flutter repository. See also f: labels.
P3
Issues that are less important to the Flutter project
platform-android
Android applications specifically
team-android
Owned by Android platform team
triaged-android
Triaged by Android platform team
In my application I want to disable the back button, but I want the user to be able to pop the current screen if he click the
AppBar
back button.Basically I have a form inside a
PageView
, so at each new form field, thePageView
moves forward, the back button is supposed to go back one step and not pop the entire form from the screen. But still, if the user wants to pop out, he can using the back button at the top.Currently we can only do it using
WillPopScope
, but this isn't enough, asWillPopScope
doesn't differentiate between a physical Back button press or anAppBar
's back button press.The text was updated successfully, but these errors were encountered: