Closed HTMHell closed 3 years ago
@HTMHell Hey Ariel, have you been able to make this work? Could you please specify why you closed this issue? Thanks.
@HTMHell Hey Ariel, have you been able to make this work? Could you please specify why you closed this issue? Thanks.
Hi, I'm not sure how it got solved. I did some refactoring (nothing to do with this issue) and then it suddenly started working as excepted. So I'm not sure what fixed it.
My refactoring included changing all screens to stateless while managing them with one parent stateful widget. So currently the parent screen and the appbar are stateful, and rest of the screens are stateless (the issue occurred in those screens). So it might have something to do with this.
I have the following case which is not working as described:
I have two widgets:
MyScreen
andCustomAppBar
. In both widgets I initialize an interceptor.MyScreen
has aScaffold
with a custom app bar widget I've made:CustomAppBar
.CustomAppBar
:MyScreen
:In this case, the default back button behavior IS fired, and the route is being popped.
And the console looks like this:
If I return
true
inMyScreen
too, then it is not fired. I tried usingz-index
, same result.Version 4.4.0