Skip to content

Instantly share code, notes, and snippets.

@Khanin-devmode
Created December 11, 2023 06:33
Show Gist options
  • Save Khanin-devmode/72baaef6c72b82801ce501ddc84d1728 to your computer and use it in GitHub Desktop.
Save Khanin-devmode/72baaef6c72b82801ce501ddc84d1728 to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
final lightTheme =
WidgetbookTheme(name: 'Light theme', data: ThemeData.light());
final darkTheme =
WidgetbookTheme(name: 'Dark theme', data: ThemeData.dark());
return Widgetbook.material(addons: [
DeviceFrameAddon(
devices: [
Devices.ios.iPhone13Mini,
Devices.ios.iPhone13ProMax,
],
initialDevice: Devices.ios.iPhone13ProMax,
),
MaterialThemeAddon(
themes: [lightTheme, darkTheme], initialTheme: lightTheme)
], directories: []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment