modal_bottom_sheet icon indicating copy to clipboard operation
modal_bottom_sheet copied to clipboard

Dynamic & max height of modal sheet

Open wizard11 opened this issue 3 years ago • 4 comments

Hi, I want to set the height of modal sheet same as the height of its contents. I don't want to show any white space below the list of options whose length is dynamic. Also while working with dynamic sheet, I would like the modal sheet to goto a certain max height only. How can I achieve these both things - dynamic height and max height of modal sheet?

Thanks Harshit

wizard11 avatar Apr 18 '21 15:04 wizard11

@wizard11 did you find a solution for this?

gabdsg avatar Dec 02 '21 22:12 gabdsg

Any news on this topic? Harshit, did you found a solution? Thanks!

imajercsik avatar Feb 14 '22 13:02 imajercsik

Hey guys, I haven't found an easy solution yet. So still using what is provided as it is not a critical requirement for us.

wizard11 avatar Feb 15 '22 14:02 wizard11

I made it pretty simple

Column(
  mainAxisSize: MainAxisSize.min,
  children: [...]
)

It renders exact height of all its children elements

avdept avatar Jul 11 '22 12:07 avdept