childScrollController property
When given a scroll controller that is attached to scrollable view, e.g ListView or a SingleChildScrollView, the sheet will naturally grow and shrink according to the current scroll position of that view.
OBS, the scrollable view needs to have the reverse
parameter set to
false if located in the below sheet and true if located in the above
sheet. Otherwise, the logic do not behave as intended.
Implementation
final ScrollController? childScrollController;