flutter_storyboard 0.1.7 copy "flutter_storyboard: ^0.1.7" to clipboard
flutter_storyboard: ^0.1.7 copied to clipboard

A Flutter package to show a storyboard of all your widgets.

Buy Me A Coffee Donate flutter_storyboard

storyboard #

A Flutter Debug tool to see and test all your screens at once.

Demo: https://rodydavis.github.io/storyboard/

screenshot

Examples #

Custom Lane Builder

Dynamic Screen Sizes

Material App Example

Widget Example

Multiple Custom Lanes Example

Getting Started #

Wrap your MaterialApp with Storyboard.

return StoryBoard.material(
      child: MaterialApp(
        debugShowCheckedModeBanner: false,
        title: 'Flutter Storyboard Example',
        theme: ThemeData.light().copyWith(
          visualDensity: VisualDensity.adaptivePlatformDensity,
        ),
        darkTheme: ThemeData.dark().copyWith(
          visualDensity: VisualDensity.adaptivePlatformDensity,
        ),
        themeMode: ThemeMode.light,
        home: HomeScreen(),
        routes: {
          '/home': (_) => HomeScreen(),
          '/about': (_) => AboutScreen(),
          '/settings': (_) => SettingsScreen(),
        },
      ),
    );
copied to clipboard

Wrap your WidgetsApp with Storyboard.widgets(). Wrap your CupertinoApp with Storyboard.cupertino().

Custom Routes and Widgets #

You can add any number of custom widgets to the canvas, including custom routes. You can add dummy data to the constructors here as it will render all default values.

customScreens: [
  SettingsScreen(),
  AboutScreen(),
  CustomWidget(title: 'Dummy Data'),
],
customRoutes: [
  RouteSettings(name: '/about'),
],
copied to clipboard

Misc #

Now you can test all your screens with a hot reload! You can also disable the widget at any time by setting enabled to false. You will need to do a hot restart after you change this value.

133
likes
40
points
67
downloads

Publisher

verified publisherrodydavis.com

Weekly Downloads

2024.09.11 - 2025.03.26

A Flutter package to show a storyboard of all your widgets.

Homepage
Repository (GitHub)

License

MIT (license)

Dependencies

device_frame, flutter, shared_preferences

More

Packages that depend on flutter_storyboard