Skip to content

Commit

Permalink
feat: add addon-config (#34)
Browse files Browse the repository at this point in the history
* feat: add addon-config

* uncommit file
  • Loading branch information
jenshor authored Oct 10, 2024
1 parent 191bf35 commit 67fa4b2
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion widgetbook/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,26 @@ void main() {
runApp(const WidgetbookApp());
}

@App()
@App(
cloudAddonsConfigs: {
'German Light': [
LocalizationAddonConfig('de'),
ThemeAddonConfig('Light'),
],
'German Dark': [
LocalizationAddonConfig('de'),
ThemeAddonConfig('Dark'),
],
'English Light': [
LocalizationAddonConfig('en'),
ThemeAddonConfig('Light'),
],
'English Dark': [
LocalizationAddonConfig('en'),
ThemeAddonConfig('Dark'),
],
},
)
class WidgetbookApp extends StatelessWidget {
const WidgetbookApp({super.key});

Expand Down

0 comments on commit 67fa4b2

Please sign in to comment.