dbenitez-bcn / solid_bottom_sheet

Apache License 2.0
58 stars 19 forks source link

Is there a way to uncenter the body? #23

Closed zhangchi0104 closed 4 years ago

zhangchi0104 commented 4 years ago

Hi, thanks for the widget. I am wondering if there is any way to uncenter the body

dbenitez-bcn commented 4 years ago

What do you mean by uncenter?

zhangchi0104 commented 4 years ago

I mean the body of the bottom sheet is always fixed(i.e. vertically centered). It would be nice to have an option to set the alignment.

I have fixed the problem by wrapping the body with a Container and set the alignment of the container to Alignment.topCenter so the content is always at the top of the body.

dbenitez-bcn commented 4 years ago

I would be nice, for sure. But I can't see the value of adding it because, as you said, it's easy to 'fix'. The think is that I don't believe that SolidBottomSheet should have the responsibility of positioning child widgets. Also, SolidBottomSheet doesn't know how large will be its child so would be a little confusing maybe aligning it... But I will keep in mind you suggestion and add it in the coming version maybe. Thanks for your support.