widgetbook_figma_addon 0.0.1 copy "widgetbook_figma_addon: ^0.0.1" to clipboard
widgetbook_figma_addon: ^0.0.1 copied to clipboard

Widgetbook Addon for Figma Preivew

Widgetbook Figma Addon #

The Widgetbook Figma Addon allows you to display a Figma preview on the right side of each UseCase in Widgetbook.

Getting started #

Install package:

flutter pub add widgetbook_figma_addon

Usage #

Add FigmaAddon to Widgetbook addons and set an unique figmaProjectName:

Widgetbook.material(
    directories: directories,
    addons: [
        FigmaAddon(
            figmaProjectName: 'Your Project Name',
        ),
    ],
);

Add designLink to your Use Cases where you want to show the figma preview

@UseCase(
    name: 'Primary',
    type: Button,
    designLink: 'https://www.figma.com/design/...')
Widget primaryButton(BuildContext context) {
  return Button(
    text: 'Primary',
    state: ButtonState.primary,
  );
}
1
likes
140
points
2.27k
downloads

Publisher

unverified uploader

Weekly Downloads

Widgetbook Addon for Figma Preivew

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_inappwebview, widgetbook

More

Packages that depend on widgetbook_figma_addon