You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ATTENTION: DO NOT USE THIS FIELD TO ASK SUPPORT QUESTIONS. USE THE PLATFORM CHANNELS FOR THIS. THIS SPACE IS DEDICATED ONLY FOR BUGS DESCRIPTION. Fill in the template. Issues that do not respect the model will be closed.
Describe the bug
I am using getx routing for my web project and all navigations are working file except invalid routes. i am impliment unknownroute in my getmaterialapp, but it didnt trigger if an invalid route called or even called 'not-found' route. i have reffered infinit tutorials and all of them using the same method and work well.
Reproduction code
NOTE: THIS IS MANDATORY, IF YOUR ISSUE DOES NOT CONTAIN IT, IT WILL BE CLOSED PRELIMINARY)
classRouteObserverextendsGetObserver {
@overridevoiddidPush(Route? route, Route? previousRoute) {
final sideBarController =Get.find<SidebarController>();
if (route?.settings.name !=null) {
if (SRoutes.sideBarMenuItems.contains(route!.settings.name)) {
sideBarController.activeItem.value = route.settings.name!;
}
}
}
@overridevoiddidPop(Route route, Route? previousRoute) {
final sideBarController =Get.find<SidebarController>();
if (previousRoute?.settings.name !=null) {
if (SRoutes.sideBarMenuItems.contains(previousRoute!.settings.name)) {
sideBarController.activeItem.value = previousRoute.settings.name!;
}
}
}
}
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Expected behavior
if a user change the valid url to invalid routename then the unknownRoute in GetMaterialApp is triggered and need to show the NotFoundPage() page should display.
@jonataslaw
You seem to be in a hurry. But chasing new things may not necessarily be good. Especially for production environments. The author feels like they are not a full-time developer. He is in a management position, so it is normal for him to not maintain actively. It is suggested that he can study the source code himself and implement a new one based on his ideas This can also improve one's own level;
ATTENTION: DO NOT USE THIS FIELD TO ASK SUPPORT QUESTIONS. USE THE PLATFORM CHANNELS FOR THIS. THIS SPACE IS DEDICATED ONLY FOR BUGS DESCRIPTION.
Fill in the template. Issues that do not respect the model will be closed.
Describe the bug
I am using getx routing for my web project and all navigations are working file except invalid routes. i am impliment unknownroute in my getmaterialapp, but it didnt trigger if an invalid route called or even called 'not-found' route. i have reffered infinit tutorials and all of them using the same method and work well.
Reproduction code
NOTE: THIS IS MANDATORY, IF YOUR ISSUE DOES NOT CONTAIN IT, IT WILL BE CLOSED PRELIMINARY)
example:
iam attaching my routes
also attaching route observers
To Reproduce
Steps to reproduce the behavior:
Expected behavior
if a user change the valid url to invalid routename then the unknownRoute in GetMaterialApp is triggered and need to show the NotFoundPage() page should display.
Screenshots
Flutter Version:
sdks:
dart: ">=3.5.3 <4.0.0"
flutter: ">=3.27.0"
Getx Version:
get:
dependency: "direct main"
description:
name: get
sha256: e4e7335ede17452b391ed3b2ede016545706c01a02292a6c97619705e7d2a85e
url: "https://pub.dev"
source: hosted
version: "4.6.6"
Describe on which device you found the bug:
web
Minimal reproduce code
Provide a minimum reproduction code for the problem
The text was updated successfully, but these errors were encountered: