JaspervanRiet / duck_router

A Flutter router with intents
MIT License
4 stars 3 forks source link

feat: catch case where users pushes duplicate path #9

Closed JaspervanRiet closed 3 months ago

JaspervanRiet commented 3 months ago

Description

When users add two locations with the same path, e.g. home and home, the router is unable to handle that. In theory we could add some sort of randomizer to the path, but my judgement in this case is that it would be better to throw an error and have the user set an unique path instead. It would be good to then throw a specific error though. This PR implements that.

Related Issues

Fixes #6

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?