slovnicki / beamer

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

Bug in 1.6.0 #653

Closed dr0g0 closed 8 months ago

dr0g0 commented 8 months ago

Error: The getter 'uri' isn't defined for the class 'RouteInformation' in the file location_builders.dart

slovnicki commented 8 months ago

Hey @dr0g0 👋 Thanks for creating an issue!

Which version of Flutter are you using?

dr0g0 commented 8 months ago

Hi @slovnicki , Flutter version: 3.7.12, Dart SDK version: 2.19.6

slovnicki commented 8 months ago

Ah, I see, thank you for the information.

It should work on Flutter v3.8 and above. If you don't want to upgrade Flutter yet, you can continue using Beamer v1.5.6 which has the exact same functionality as v1.6.0.

This v1.6.0 release just replaced all usage of deprecated RouteInformation.location with RouteInformation.uri that was added in Flutter v3.8. Beamer was getting a low score on pub.dev because of these deprecation warnings so I decided to migrate it now that most projects had time to upgrade Flutter.

I'm sorry for the incovenience and thank you for reporting it so fast!