ButtonStyle.card constructor

const ButtonStyle.card({
  1. ButtonSize size = ButtonSize.normal,
  2. ButtonDensity density = ButtonDensity.normal,
  3. ButtonShape shape = ButtonShape.rectangle,
})

Creates a card button style with elevated appearance.

Card buttons feature subtle shadows and borders creating an elevated, card-like appearance suitable for content-heavy layouts.

Implementation

const ButtonStyle.card({
  this.size = ButtonSize.normal,
  this.density = ButtonDensity.normal,
  this.shape = ButtonShape.rectangle,
}) : variance = ButtonVariance.card;