createBasicCard static method
DynamicCardConfig
createBasicCard({
- required String title,
- required String content,
- TextStyle? titleStyle,
- TextStyle? contentStyle,
- double elevation = 1.0,
- Color backgroundColor = Colors.white,
- EdgeInsets? padding,
- EdgeInsets? margin,
Creates a basic card with title and text content
Implementation
static DynamicCardConfig createBasicCard({
required String title,
required String content,
TextStyle? titleStyle,
TextStyle? contentStyle,
double elevation = 1.0,
Color backgroundColor = Colors.white,
EdgeInsets? padding,
EdgeInsets? margin,
}) {
return DynamicCardConfig(
title: title,
titleStyle: titleStyle,
content: [
CardContentItem(
type: ContentType.text,
text: content,
textStyle: contentStyle,
),
],
elevation: elevation,
backgroundColor: backgroundColor,
padding: padding,
margin: margin,
);
}