Feature: expose isOpen in the api
lff5 opened this issue · comments
Hi.
I want to have Android's back button to work properly.
Right now thats my code:
if (Platform.isAndroid) {
return WillPopScope(
onWillPop: () async {
intro.dispose();
if (Navigator.of(context).canPop()) {
return true;
}
},);
}
It does close the intro stepper but if the app navigation is on root level it also exits the app or moves back which is unintended. So i would need to have some feedback on whether intro was closed.
Either should intro.dispose() return if anything was closed or there should be isOpen function in the api. The last being much more universal for other purposes too.
Thank you!
Thank you for your suggestion, I will expose the api as soon as possible
flutter_intro/example/lib/main.dart
Lines 232 to 241 in fd13c39
Version
2.1.0
has just been released, and now you can execute the getStatus method to get the current status. Finally, thank you very much for your suggestions.