Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set default device frame #127

Open
ozkayas opened this issue Oct 24, 2023 · 1 comment
Open

How to set default device frame #127

ozkayas opened this issue Oct 24, 2023 · 1 comment

Comments

@ozkayas
Copy link

ozkayas commented Oct 24, 2023

I am trying to set a default device frame, however I can not figure out how to get the device property for the plugin.

Storybook(
        plugins: [
          ThemeModePlugin(initialTheme: ThemeMode.light),
          DeviceFramePlugin(initialData: (
            isFrameVisible: true,
            device: ???,
            orientation: Orientation.portrait,
          )),
        ],
        initialStory: calendarStory.name,
        stories: [...getStories()]);

It should be nice to be added to the Read.me also

@ookami-kb
Copy link
Owner

Hey, you can use Devices class, e.g.: Devices.ios.iPhone13ProMax.

Yes, good point, I will add it to readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants