Skip to content
pubscout

storybook_toolkit

1.3.2, released 2 years ago by an unverified publisher

Flutter widget showcase and isolated preview tool

WASM-ready
$ flutter pub add storybook_toolkit
Source repository

What it does

Storybook Toolkit lets you build and preview widgets in isolation, with device frames and theme switching. It also supports golden tests and plugin extensibility.

AI-written summary of version 1.3.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need to showcase or test widgets in isolation
  • Want to generate golden tests for UI components
  • Need to preview widgets on multiple device frames
  • Looking for a plugin-based devtool for Flutter

Skip it when

  • You only need a simple widget library without preview features
  • Your project already uses a different storybook implementation

Strengths

  • Plugin architecture allows adding features easily
  • Built-in device frame simulation
  • Integrated golden test support
  • Supports theme and localization changes

Weaknesses

  • Only works with Flutter
  • Requires adding several dependencies
  • No code generation features

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
10
```dart
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) =>
    Storybook(
      stories: [
        Story(
          name: 'Counter',
          builder: (context) => CounterPage(
            title: context.knobs.text(label: 'Title', initial: 'Counter'),
            enabled: context.knobs.boolean(label: 'Enabled', initial: true),
          ),
        ),
      ],
    );
}
```

Works with

Packages commonly used together with storybook_toolkit: ones it builds on, ones built on it, and its own family.