New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Back Button skipping page when using overlay #33
Comments
Hi @flodaniel , first of all thanks for using this package and thanks for the detailed issue. This is a very strange behavior, LoaderOverlay has nothing to do with navigation. Are you using the disableBackButton property set to true or false? I guess this is the only thing closely related to navigation. Can you provide a small repo with the problem? It will help me a lot debuging this issue. Thanks very much! |
Hi @rodrigobastosv , thanks for your reply :) I tried it with both variants but the behaviour did not change sadly. Will try to create a repo today :) |
1 similar comment
Hi @rodrigobastosv , thanks for your reply :) I tried it with both variants but the behaviour did not change sadly. Will try to create a repo today :) |
I has same problem |
Hey guys, can you provide a small sample so i can reproduce this on my side? |
import 'package:flutter/cupertino.dart'; void main() { class MyApp extends StatelessWidget { @OverRide class PageA extends StatelessWidget { @OverRide class PageB extends StatelessWidget { @OverRide |
Thanks for providing an example i can work on. I will see whats going on |
The fix to this issue is on the 2.0.10, already on pub.dev. Thanks very much! |
after upgrade to 2.0.10 still not showing loaderOverlay on example above |
Hey @poringe , will see again if i forgot something. Maybe i'll create a repo with the code so you can take a look. Will reopen this issue and give you some feedback soon |
I can confirm the issue is still hapening @poringe . Thanks for pointing it. Give me some days to figure out whats going on |
Hey @rodrigobastosv do you have a plan why this is still happening? I would love to use the package! |
@rodrigobastosv I just read throw the sample code and it is not what my issue is about. I have a navigation issue, whereas @poringe has a display problem. |
Hey, @flodaniel i was trying to debug this based on the sample code @poringe provided. Can you provide a sample code reproducing your error. I would love to see whats going on |
Hey @rodrigobastosv, Edit: Indeed it is only the call to |
I am now working on finding the root cause and it appears to be the adding of the back button interceptor in
Interesting enough this interceptor is never called when I try to debug it. |
Thanks for these informations @flodaniel . Im not used to flow_builder, but i will try to create an example using it so i can reproduce the problem |
the flow_builder uses this implementation i think to work with navigation events. i would not be surprised if there can be some conflicts here. |
@rodrigobastosv i opened a new ticket here: marcglasberg/back_button_interceptor#23 |
Great @flodaniel , i'll follow this ticket too |
I have two Pages A and B. Page A is the root of my app and when going back from Page A, the app is closed.
Page A uses
LoaderOverlay
at its root and displays a loading before navigating from Page A to Page B.When using the android back button on Page B, the app closes instead of navigating back to Page A.
When
context.loaderOverlay.show()
is not called, this behaviour does not occur. So the bug is not caused by the presence of theLoaderOverlay
, but rather by the display of it.We use the https://pub.dev/packages/flow_builder package for navigation, but I also tried a simple
Navigator.push
, which also shows the same behaviour.The text was updated successfully, but these errors were encountered: