CardCarouselTheme constructor

const CardCarouselTheme({
  1. int sharpness = 9,
})

Constructs a CardCarouselTheme instance with optional sharpness customization.

The sharpness parameter specifies the gradient intensity for edge fades. It defaults to 9, offering a balanced visual effect suitable for most UI layouts. This constructor is typically used when defining theme extensions in ArcaneTheme.

Parameters:

  • sharpness: int (optional, default 9) - Controls fade sharpness (1-12, clamped).

Example:

final theme = CardCarouselTheme(sharpness: 5); // Softer fade

Implementation

const CardCarouselTheme({this.sharpness = 9});