KRCardPrimary constructor
const
KRCardPrimary({
- Key? key,
- required String title,
- required String subtitle,
- required Widget child,
- List<
Color> ? gradientColor, - EdgeInsetsGeometry padding = const EdgeInsets.all(KRTheme.PADDING_NORMAL),
- int backgroundColor = KRTheme.DEFAULT_LIGHT_COLOR,
- int headerColor = KRTheme.DEFAULT_SECONDARY_COLOR,
- 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);