storybook_device_preview 0.2.0+5 copy "storybook_device_preview: ^0.2.0+5" to clipboard
storybook_device_preview: ^0.2.0+5 copied to clipboard

discontinued

A plugin for device_preview package that allows to embed storybook_flutter.

storybook_device_preview #

A plugin for device_preview package that allows to embed storybook_flutter with contents and knobs support.

Getting Started #

You can use CustomStorybook with builder parameter to embed the storybook into DevicePreview. Pass storybookPlugins to enable contents and knobs panel:

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) =>
      CustomStorybook(
        builder: (context) =>
            DevicePreview(
              plugins: storybookPlugins,
              builder: (context) =>
                  MaterialApp(
                    builder: DevicePreview.appBuilder,
                    locale: DevicePreview.locale(context),
                    home: const Scaffold(body: CurrentStory()),
                  ),
            ),
        children: [
          // Your stories go here
        ],
      );
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

11
likes
140
points
0
downloads

Publisher

verified publisherookamikb.dev

Weekly Downloads

A plugin for device_preview package that allows to embed storybook_flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

device_preview, flutter, storybook_flutter

More

Packages that depend on storybook_device_preview