How to separate app run from running stories
pashute opened this issue · 1 comments
-
In Development: In React Native with Storybook, you have the ability to run the stories separately from the app even during the development.
-
In Production: In the RN+SB you can also conditionally have the stories skipped when in production code (Not sure if the stories are completely eliminated from the codebase, but I'm sure they are not invoked).
-
In VSCode Extension: In the RN+SB you can even see and jump to your stories with a VSCode extension.
What would need to be done to achieve the same in your Flutter Storyboard?
You can add this dependency in dev_dependencies,
then at your root directory create a "stories" directory and a main_storyboard.dart
fill this last file with a main add your stories:
void main() {
runApp(
StoryboardApp([
OldSignInStory(),
NewSignInStory(),
]),
);
}
then
flutter run -t stories/storyboard.dart -d iphone