ExpandableBottomSheet

This is a BottomSheet with a draggable height like the Google Maps App on Android.

If you have suggestions or find bugs please write an issue at github. PR's are welcome.

How to use it?

Just look into the example Tab

Arguments

ArgumentDescription
expandableContentThis is the widget which you can hide and show by dragging. It has to be a widget with a constant height.
backgroundThis is the widget behind the expandableContent which holds usually the content of your page.
persistentHeaderThis is a Widget which is on top of the expandableContent and will never be hidden. It is made for a widget which indicates the user he can expand the content by dragging.
persistentFooterThis is a widget which is always shown at the bottom. The expandableContentis if it is expanded on top of it so you don't need margin to see all of your content. You can use it for example for navigation or a menu.
persistentContentHeightThis is the height of the content which will never been contracted. It only relates to expandableContent. persistentHeader and persistentFooter will not be affected by this.
animationDurationExtendThis is the duration for the animation if you stop dragging with high speed.
animationDurationContractis the duration for the animation to bottom if you stop dragging with high speed. If it is null animationDurationExtend will be used.
animationCurveExpandThis is the curve of the animation for expanding the expandableContent if the drag ended with high speed.
animationCurveContractThis is the curve of the animation for contracting the expandableContent if the drag ended with high speed.
onIsExtendedCallbackThis will be executed if the extend reaches its maximum.
onIsContractedCallbackThis will be executed if the extend reaches its minimum.

Libraries

expandable_bottom_sheet