SmoothModalSheet constructor
Implementation
SmoothModalSheet({
required String title,
required this.body,
SmoothModalSheetType type = SmoothModalSheetType.info,
bool prefixIndicator = false,
bool closeButton = true,
Color? prefixIndicatorColor,
Color? headerBackgroundColor,
Color? headerForegroundColor,
this.bodyPadding,
this.expandBody = false,
double? closeButtonSemanticsOrder,
}) : header = SmoothModalSheetHeader(
title: title,
prefix: prefixIndicator
? SmoothModalSheetHeaderPrefixIndicator(
color: prefixIndicatorColor,
)
: null,
suffix: closeButton
? SmoothModalSheetHeaderCloseButton(
semanticsOrder: closeButtonSemanticsOrder,
)
: null,
backgroundColor: headerBackgroundColor,
foregroundColor: headerForegroundColor,
type: type,
);