storybook_flutter
storybook_flutter copied to clipboard
Feature Request : Add code snippet in Story
First of all, thank your for this project.
It is easy to use, and nice to see.
Here is a feature request we might like for upcoming updates : Add a possibility to add a code snippet on a component Story
It would be great to see a minimum code to use to implement the demonstrated widget.
I was thinking about something similar. We could provide these code snippets as md files. These could also be used with @example in the dartdoc (or we could reuse existing md files). We would then create a plugin for the storybook that uses flutter_highlight to display the code snippets.
I'm just unsure how to assign md file(s) to a story.
And this should probaly wait, until the rework of the plugin api is finished.
Yeah, makes sense to me. I was also thinking about some code generation for snippets etc – e.g. it can be taken from the docstrings.
Any update on this, or any instruction on how it can be added to the lib. I would gladly help on creating a PR. @ookami-kb