Closed guilhermedaldim closed 1 year ago
Hey, thanks.
You can create your own devices, you just need to initialize plugins manually. Something like this:
@override
Widget build(BuildContext context) => Storybook(
plugins: [
ThemeModePlugin(),
DeviceFramePlugin(
deviceInfos: [
DeviceInfo.genericPhone(
platform: TargetPlatform.android,
id: 'custom-320',
name: '320px phone',
screenSize: const Size(320, 480),
),
...Devices.all,
],
),
],
initialStory: 'Screens/Scaffold',
// ...
And select it in the storybook:
Hey man, thanks for your support this works.
Hi, thank you for your package, it's very good!
I need of support for a device that is 320px wide.
Thanks!