auto_route_library icon indicating copy to clipboard operation
auto_route_library copied to clipboard

Make route only takes as much space as its children

Open lukaskurz opened this issue 1 year ago • 1 comments

Hi there.

In my app i have a bottom sheet, in which i want to put a AutoRouter widget. This bottom sheet should take up just as much space as the content inside it i.e. small child wiget -> small bottom sheet, to show more of the content (maps widget) behind the bottom sheet.

When I use a Navigator widget this works just fine (but I cannot use it for other reasons), however the AutoRouter widget seems to the expand to take up as much space as possible, resulting in the bottom sheet maxing out is vertical size, although the actual child widget being rendered is fairly small. Is there any option/workaround, to prevent the AutoRouter from expanding like this ?

lukaskurz avatar Jul 22 '22 16:07 lukaskurz

@lukaskurz Not sure what'g going on, AutoRouter is not using in sizing widget inside of it.

Milad-Akarie avatar Jul 23 '22 10:07 Milad-Akarie

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

github-actions[bot] avatar Nov 26 '22 08:11 github-actions[bot]