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

Avoid RenderFlex overflow #23

Open
simplenotezy opened this issue Mar 20, 2023 · 2 comments
Open

Avoid RenderFlex overflow #23

simplenotezy opened this issue Mar 20, 2023 · 2 comments

Comments

@simplenotezy
Copy link

Is there a way to avoid renderflex overflow when opening a route? I notice some warnings when the transition to open the route happens

@Tkko
Copy link
Owner

Tkko commented Mar 20, 2023

Hey @simplenotezy, I suppose you are using Hero, which exact widget is overflowing?

One option is to configure flightShuttleBuilder parameter, and return the widget you want but without the problematic widget.

    return Hero(
      tag: 'settings',
      flightShuttleBuilder: (
        flightContext,
        animation,
        direction,
        fromContext,
        toContext,
      ) => // return custom widget
    );

@simplenotezy
Copy link
Author

Thanks for the reply Tkko. I'll play around with that

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