-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
URL display is wrong with multiple beamers after page refresh #523
Comments
It seems the issue comes from the The actual implementation/// Default location to choose if requested URI doesn't parse to any location.
class NotFound extends BeamLocation<BeamState> {
/// Creates a [NotFound] [BeamLocation] with
/// `RouteInformation(location: path)` as its state.
NotFound({String path = '/'}) : super(RouteInformation(location: path));
@override
List<BeamPage> buildPages(BuildContext context, BeamState state) => [];
@override
List<String> get pathPatterns => [];
}
The implementation that worksclass NotFound extends BeamLocation<BeamState> {
NotFound([
RouteInformation? routeInformation,
BeamParameters? beamParameters,
]) : super(routeInformation, beamParameters);
@override
List<BeamPage> buildPages(BuildContext context, BeamState state) => [];
@override
List<String> get pathPatterns => [];
} And, obviously, the Let me know if you have any question. I let you close the issue. |
Hey @ygotthilf 👋 Thanks for creating an issue and solving it 😮? 💙 I've also seen some strange behavior when using similar custom Thanks again for everything! |
@ygotthilf |
Hey @ygotthilf |
Hello 👋
Describe the bug
In my app (with several beamers) and in the
bottom_navigation_multiple_beamers
example, I had an issue after refreshing the page. The url is updated to the wrong path.Beamer version:
master
To Reproduce
Just refresh the page.
Here a screencast of the issue with the
bottom_navigation_multiple_beamers
exampleExpected behavior
The path should be the same.
Desktop (please complete the following information):
Chrome 101.0.4951.64 on MacOS
Thank for your support and this great package ! 🤩
The text was updated successfully, but these errors were encountered: