Search packages, repositories and app categories

Package detailsv3.24.0

widgetbook_generator

A package to automate setup and maintenance of the widgetbook package by using code generation.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
311K
Likes
21
Pub points
150

Install package

flutter pub add widgetbook_generator

Package Overview

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

widgetbook_generator is a code generation package that automates the setup and maintenance of WidgetBook, a component-driven UI development tool for Flutter. By generating boilerplate code, it streamlines the creation of stories, configurations, and themes, reducing manual effort and potential errors. It integrates seamlessly with the WidgetBook ecosystem, enabling developers to focus on building and testing UI components efficiently across multiple platforms.

Use cases

  • Automating story file generation
  • Simplifying theme and environment setup
  • Enabling rapid UI component iteration
  • Maintaining consistent widgetbook structure
  • Supporting cross-platform UI testing
  • Reducing manual configuration overhead

Key features

  • Automatic code generation for stories
  • Integration with WidgetBook runtime
  • Supports themes and environments
  • Reduces boilerplate
  • Ensures consistency across projects
  • Platform-agnostic generation

Suitable for

  • Flutter teams using component-driven development
  • Developers maintaining large UI libraries
  • Teams prioritizing UI testing and documentation
  • Frontend engineers focused on design system implementation
  • Projects requiring reusable and testable widgets

Considerations

  • Requires dependency on widgetbook package
  • Needs proper project structure for generation
  • May require configuration adjustments for complex setups
  • Generated code should be reviewed before committing
  • Not suitable for dynamic or runtime-only story creation

Original README

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

packages/widgetbook/README.md

Categories

Dependencies

Dependency list 10 items

Source repository

Projects using this package

No data available yet.