KRCardPrimary constructor

const KRCardPrimary({
  1. Key? key,
  2. required String title,
  3. required String subtitle,
  4. required Widget child,
  5. List<Color>? gradientColor,
  6. EdgeInsetsGeometry padding = const EdgeInsets.all(KRTheme.PADDING_NORMAL),
  7. int backgroundColor = KRTheme.DEFAULT_LIGHT_COLOR,
  8. int headerColor = KRTheme.DEFAULT_SECONDARY_COLOR,
  9. int textColor = KRTheme.DEFAULT_DARK_COLOR,
})

Implementation

const KRCardPrimary({
  Key? key,
  required this.title,
  required this.subtitle,
  required this.child,
  this.gradientColor,
  this.padding = const EdgeInsets.all(KRTheme.PADDING_NORMAL),
  this.backgroundColor = KRTheme.DEFAULT_LIGHT_COLOR,
  this.headerColor = KRTheme.DEFAULT_SECONDARY_COLOR,
  this.textColor = KRTheme.DEFAULT_DARK_COLOR,
}) : super(key: key);