marcglasberg / back_button_interceptor

Flutter Package: May be used to intercept the Android back-button, as an alternative to `WillPopScope`.
BSD 2-Clause "Simplified" License
105 stars 21 forks source link

Does not call myInterceptor with navigator. maybePop() #3

Closed lx36301766 closed 4 years ago

lx36301766 commented 4 years ago

The OnWillPop will called if use navigator. maybePop(), but the myInterceptor() on back_button_interceptor is not call

https://github.com/flutter/flutter/issues/31054

marcglasberg commented 4 years ago

That's the expected behavior, so I'm going to close this issue.

The back_button_interceptor is not supposed to replace the Navigator pop. If you have more details on what you want to do, and maybe some example code that shows the problem you are having and the use case for some proposed change, please post it here. Thanks.