Official
Mobile Development
Adds interactive, real-time widget previews to Flutter projects using the previews.dart system for efficient UI design and isolated testing.
The Flutter Widget Previewer skill enables developers to generate interactive, real-time widget previews directly within their Flutter projects. By automating the integration of the previews.dart system and configuring `@Preview` annotations, this skill lets you build and iterate on UI components in complete isolation from the full application context. It supports multi-device and multi-theme configurations, runtime transformations, and integrates seamlessly with both IDEs and command-line environments, helping you maintain consistent designs and speed up frontend development loops.
Key Features
01Provides clean templates for basic, custom, and multi-brightness Flutter previews.
02Generates MultiPreview configurations to simultaneously test widgets across multiple brightness modes and devices.
03Flags design-limiting issues such as raw native APIs (dart:io/dart:ffi) and non-package asset paths for mock safety.
042,608 GitHub stars
05Supports custom preview definitions with dynamic runtime transformations like theme-switching and adaptive naming.
06Automates the addition of `@Preview` annotations to top-level functions, static methods, or parameter-less public constructors.
Use Cases
01Streamlining frontend design handoffs and rapid layout iteration using Flutter's web-based preview environment.
02Generating responsive, dark/light mode previews for custom design system elements.
03Developing and testing isolated UI components in Flutter without running the entire application context.