CNSheetInlineAction constructor
const
CNSheetInlineAction({})
Creates an inline action button.
label - Label displayed below the icon
icon - SF Symbol icon name
enabled - Whether the action can be tapped
isToggled - Whether the action appears in selected/highlighted state
dismissOnTap - Whether tapping this action dismisses the sheet (default: true)
backgroundColor - Optional custom background color for this action button
width - Custom width for this button (default: 70)
iconSize - Size of the SF Symbol icon (default: 24)
labelSize - Font size for the label text (default: 13)
cornerRadius - Corner radius for the button (default: 12)
iconLabelSpacing - Spacing between icon and label (default: 6)
Implementation
const CNSheetInlineAction({
required this.label,
required this.icon,
this.enabled = true,
this.isToggled = false,
this.dismissOnTap = true,
this.backgroundColor,
this.width,
this.iconSize,
this.labelSize,
this.cornerRadius,
this.iconLabelSpacing,
});