ookami-kb / storybook_flutter

A storybook for Flutter widgets.
https://pub.dev/packages/storybook_flutter
MIT License
285 stars 63 forks source link

Expose supportedLocales parameter #56

Closed bahamut657 closed 2 years ago

bahamut657 commented 2 years ago

Hi In order to perform some tests using the Flutter localizations I need to pass 2 parameters:

You can find more info here https://docs.flutter.dev/development/accessibility-and-localization/internationalization

Is it possible to expose this parameter?

Regards and great work!!!

ookami-kb commented 2 years ago

Hi, thanks!

Yeah, it makes sense. I can do it later, or feel free to submit a PR.

ookami-kb commented 2 years ago

In the new version, the storybook doesn't use MaterialApp for its own interface, so you can just provide your own instance of MaterialApp with all the needed parameters as a wrapper.