ookami-kb / storybook_flutter

A storybook for Flutter widgets.
https://pub.dev/packages/storybook_flutter
MIT License
288 stars 66 forks source link

Missing routes for stories #105

Open BischlerBastian opened 1 year ago

BischlerBastian commented 1 year ago

I've found that switching between stories is primarily done by state and therefore not by a route or navigator. It is important for us to have individual URLs for each story as we link them to our design system.

Could you please reintroduce named routes for each story?

Thank you very much for your great work.

ookami-kb commented 1 year ago

Hey, thanks!

Yeah, I removed the built-in support for URLs because they require a Navigator, which can conflict with stories (e.g. dialogs).

But you're right that this is a pretty standard use case. I'm thinking about creating some optional wrapper that would enable this functionality in exchange for some potential overhead for stories.

BischlerBastian commented 1 year ago

That would be great. Thanks!