Search packages, repositories and app categories

Package detailsv1.0.0

storyboard

Faster iterative development of Flutter user interfaces by isolating widgets from your app.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
56
Likes
27
Pub points
120

Install package

flutter pub add storyboard

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Storyboard is a Flutter package that enables faster iterative development of user interfaces by allowing developers to isolate and preview individual widgets independently of the main app. It supports component-driven UI development, making it easier to design, test, and refine UI components in isolation. With support across all major platforms—Android, iOS, Web, macOS, Windows, and Linux—Storyboard streamlines the UI workflow for teams focused on consistency and rapid prototyping. The package integrates seamlessly with Flutter’s hot reload, enhancing productivity during design iterations.

Use cases

  • UI component testing
  • rapid prototyping
  • design system development
  • collaborative UI reviews
  • isolated widget debugging

Key features

  • Widget isolation
  • live preview
  • cross-platform support
  • hot reload integration
  • customizable story views

Suitable for

  • UI designers
  • frontend developers
  • design system teams
  • Flutter beginners
  • agile development teams

Considerations

  • Requires setup for each widget
  • Not intended for production builds
  • Limited to UI-focused workflows
  • May increase project complexity
  • Best used in development only

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Storyboard

pub package

Faster iterative development of Flutter user interfaces by isolating widgets from your app, inspired by Storybook. Stage a collection of Widgets outside their normal app context. By repeating the same widget in various configurations or states in a single view, the effect of code changes to the Widget can quickly be assessed. This is especially useful for cosmetic changes, but also effective for behavior changes.

Adding Stories

The first step is to build a few stories, from which your Storyboard will be composed. Building stories is done by providing concrete children of the Story abstract class, e.g.

import 'package:mypackage/contacts.dart';
import 'package:storyboard/storyboard.dart';

class ContactsListStory extends Story {

  @override
  List<Widget> get storyContent {
    return [ContactsList()];
  }
}

At a minimum, the abstract storyContent getter, which provides the widgets to be observed, must be overridden. Overriding the title will alter the heading presented for the story. Overriding isFullScreen (or implementing FullScreenStory) will instruct the Widget to render itself within a new Navigator route without scaffolding.

The build method itself can also be overridden to completely customize the display of the Story.

Building a Storyboard

A storyboard is little more than a collection of stories.

import 'package:flutter/material.dart';
import 'package:storyboard/storyboard.dart';
import 'stories/contacts_story.dart';

void main() {
  runApp(MaterialApp(
      home: Storyboard([
        ContactsListStory(),
        ContactsCardStory(contact: Contact("alice")),
        ContactsCardStory(contact: Contact("bob")),
        ContactsCardStory(contact: Contact("charlie")),
  ])));
}

Or more simply, run the convenience StoryboardApp directly.

void main() {
  runApp(StoryboardApp([
    ContactsListStory(),
    ContactsCardStory(contact: Contact("alice")),
    ContactsCardStory(contact: Contact("bob")),
    ContactsCardStory(contact: Contact("charlie")),
  ]));
}

Further reading

See the article Storyboarding Widgets in Flutter.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.