Adjustments in context Navigations methods.
- Add `String? routeName` to the following context Navigation methods: `to`, `off`, `offAll`. To enforce the usage of `RouteSettings` and avoid issues with GetxController not being disposed properly, and also to keep control and consistency in the methods. - modified `RouterReportManager.reportRouteDispose` to make it work with context Routes. - added extension_navigator.dart `_cleanRouteName` to remove unwanted format where the Route name is taking from the page Type in context Routes. - added `GetStringUtils.paramCase` to support potentially a clean url name for the context Routes. So `/()=> MyView` can become `/my-view' - added `GetUtils.snakeCase` and `GetUtils.paramCase` to support `_cleanRouteName` url Strings (currently deactivated.) Base code taken from the ReCase package and proper credit attributed in comments.
Showing
4 changed files
with
82 additions
and
16 deletions
-
Please register or login to post a comment