-
-
Save Khanin-devmode/72baaef6c72b82801ce501ddc84d1728 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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