Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapping all use cases in other widgets #74

Closed
LucasJosefiak opened this issue Dec 1, 2021 · 2 comments · Fixed by #103
Closed

Wrapping all use cases in other widgets #74

LucasJosefiak opened this issue Dec 1, 2021 · 2 comments · Fixed by #103
Labels
t: feat New feature or request

Comments

@LucasJosefiak
Copy link
Member

Feedback of one user: "My early feedback is to add some means of wrapping all use cases in other widgets. I have a kind of my own Theme, I'm not using the Material one, and right now I have to wrap every widget inside the usecase with that. Something like a Widget builder (Widget usecase) for a Widgetbook (or maybe even the categories/folders for scoping) would be really handy"

@LucasJosefiak LucasJosefiak added the t: feat New feature or request label Dec 1, 2021
@prolificcoder
Copy link

👍 on this. We have our own theme and not able to load it in anywhere in the Widgetbook class.

For some inspiration take a look at https://github.com/eBay/flutter_glove_box/blob/3b82f4e1b86cc2351f599f743815afc0500df4e8/packages/golden_toolkit/lib/src/testing_tools.dart#L95

this what we are using to load our custom stuff in widget tests.

@jenshor
Copy link
Member

jenshor commented Feb 3, 2022

We just fixed this (and many other issues) as a beta release on pub.dev. We are still adjusting the generator to the breaking changes, but the updated generator will likely land next week. Let us know what you think!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t: feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants