CNSheetInlineAction constructor

const CNSheetInlineAction({
  1. required String label,
  2. required String icon,
  3. bool enabled = true,
  4. bool isToggled = false,
  5. bool dismissOnTap = true,
  6. Color? backgroundColor,
  7. double? width,
  8. double? iconSize,
  9. double? labelSize,
  10. double? cornerRadius,
  11. double? iconLabelSpacing,
})

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,
});