modal_bottom_sheet icon indicating copy to clipboard operation
modal_bottom_sheet copied to clipboard

how to set padding of new modal sheet from top?

Open lucasjinreal opened this issue 4 years ago • 5 comments

image

like this, the bottom sheet have a larger padding , how to make it looks like this?

lucasjinreal avatar Aug 20 '20 14:08 lucasjinreal

Not sure how is the interaction between those multiple modals.

But it is not possible to change the top padding of the showCupertinoModalBottonSheet.

You can create your own modal bottom sheet similar to https://github.com/jamesblasco/modal_bottom_sheet/blob/master/example/lib/modals/floating_modal.dart. But this does not animate previous routes

jamesblasco avatar Aug 20 '20 15:08 jamesblasco

I currently working on stacking modals because it is not working as expected. I looked into the iOS Calendar App and stacked modals have the same padding but they have a different closing behavior. If you close the stacked modal the previous modal starts the transition when you reach around the half of the screen. When you have one modal and closes it, the previous route starts the transition immediately.

I thinks in the example are one modal and a second one which uses a different presentationStyle without the modal transition.

bierbaumtim avatar Aug 20 '20 18:08 bierbaumtim

Shouldn't this be easy to solve as long as _behind_widget_visible_height on _CupertinoBottomSheetContainer becomes a parameter?

tomasdev avatar Oct 10 '20 23:10 tomasdev

@tomasdev Yeah, I agree with tomas, any concern on why not make it as a param?

lucasjinreal avatar Oct 11 '20 02:10 lucasjinreal

url is not valid

there is updated i believe https://github.com/jamesblasco/modal_bottom_sheet/blob/main/modal_bottom_sheet/example/lib/modals/floating_modal.dart

ekoRemDev avatar Oct 07 '22 11:10 ekoRemDev