show static method
Future<int?>
show({
- required dynamic context,
- String? title,
- String? message,
- List<
CNSheetItem> items = const [], - List<
CNSheetDetent> detents = const [CNSheetDetent.large], - bool prefersGrabberVisible = true,
- bool isModal = true,
- bool prefersEdgeAttachedInCompactHeight = false,
- bool widthFollowsPreferredContentSizeWhenEdgeAttached = false,
- double? preferredCornerRadius,
- dynamic itemBackgroundColor,
- dynamic itemTextColor,
- dynamic itemTintColor,
- void onItemSelected(
- int index
Shows a native sheet (delegates to CNNativeSheet)
Implementation
static Future<int?> show({
required context,
String? title,
String? message,
List<CNSheetItem> items = const [],
List<CNSheetDetent> detents = const [CNSheetDetent.large],
bool prefersGrabberVisible = true,
bool isModal = true,
bool prefersEdgeAttachedInCompactHeight = false,
bool widthFollowsPreferredContentSizeWhenEdgeAttached = false,
double? preferredCornerRadius,
itemBackgroundColor,
itemTextColor,
itemTintColor,
void Function(int index)? onItemSelected,
}) {
return CNNativeSheet.show(
context: context,
title: title,
message: message,
items: items,
detents: detents,
prefersGrabberVisible: prefersGrabberVisible,
isModal: isModal,
prefersEdgeAttachedInCompactHeight: prefersEdgeAttachedInCompactHeight,
widthFollowsPreferredContentSizeWhenEdgeAttached:
widthFollowsPreferredContentSizeWhenEdgeAttached,
preferredCornerRadius: preferredCornerRadius,
itemBackgroundColor: itemBackgroundColor,
itemTextColor: itemTextColor,
itemTintColor: itemTintColor,
onItemSelected: onItemSelected,
);
}