Flutter_dismissible_page icon indicating copy to clipboard operation
Flutter_dismissible_page copied to clipboard

Avoid RenderFlex overflow

Open simplenotezy opened this issue 2 years ago • 2 comments

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

simplenotezy avatar Mar 20 '23 14:03 simplenotezy

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
    );

Tkko avatar Mar 20 '23 15:03 Tkko

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

simplenotezy avatar Mar 22 '23 19:03 simplenotezy