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

Storyboard() use in MaterialApp as widget, does not use size #13

Closed
rydmike opened this issue May 11, 2020 · 3 comments
Closed

Storyboard() use in MaterialApp as widget, does not use size #13

rydmike opened this issue May 11, 2020 · 3 comments
Assignees

Comments

@rydmike
Copy link

rydmike commented May 11, 2020

When using Storyboard() in a MaterialApp as a widget, like in example "complete_custom_lanes_builder.dart", it does not pick up the size set for the screens in storyboard, they get the size of the host app.

Tested in version: 0.1.2+1

@rodydavis
Copy link
Owner

To make this work you need to provide a childSize. If you use dynamic screen sizes for the children then it wont know the size to provide.

childSize: Size(400, 700), // <-- Needed for Child Observer

@rodydavis rodydavis self-assigned this May 11, 2020
@rodydavis
Copy link
Owner

Fixed on version 0.1.3 and added sizedChildren if you need a custom size to show

@rydmike
Copy link
Author

rydmike commented May 12, 2020

Thanks, this works now. There are however still some sizing issue remaining, I will post them as separate issues with more specific details and examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants