slovnicki / beamer

A routing package built on top of Router and Navigator's pages API, supporting arbitrary nested navigation, guards and more.
MIT License
582 stars 128 forks source link

route.settings property return null in RouterObserver #664

Open rahmanrezaee opened 2 months ago

rahmanrezaee commented 2 months ago

Describe the bug I try to observer the route changes and I have to use RouteObserver which gives me to listen when the user push or pop and replacement but I'm not able to get the value of route.settings object property and return null but strange is that while a print toString it returns value in the correct format

**Beamer version: v1.6.1

To Reproduce Steps to reproduce the behavior:

  1. Make a RouteObserver
  2. and override a method of them like didPush
  3. and print('${route.settings.name}'); // its return null instead current URL like '</>'
  4. See debugs

Expected behavior it must return the value of the URL and argument

Screenshots image image image

Desktop:

rahmanrezaee commented 1 month ago

any update? @timshadel