Skip to content

andrea689/widgetbook_figma_addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,
  );
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages