maxHeight property

double? maxHeight
final

How high this bottom sheet will be allowed to grow. If not null, it must be greater than 0. The bottom sheet will not grow beyond the screen height excluding the top viewPadding even if a greater maxHeight value is declared.

Defaults to MediaQuery.size.height - MediaQuery.viewPadding.top

Implementation

final double? maxHeight;