StatCard constructor
const
StatCard({
- Key? key,
- required String title,
- required String value,
- required IconData icon,
- Color? iconColor,
- Color? backgroundColor,
- TextStyle? titleStyle,
- TextStyle? valueStyle,
- BoxDecoration? decoration,
- EdgeInsetsGeometry padding = const EdgeInsets.all(16.0),
- Widget? trailing,
- double borderRadius = 12.0,
- double elevation = 2.0,
- VoidCallback? onTap,
- Widget titleBuilder(
- BuildContext context,
- String title
- Widget iconBuilder(
- BuildContext context,
- IconData icon,
- Color? color
Creates a StatCard widget
Implementation
const StatCard({
Key? key,
required this.title,
required this.value,
required this.icon,
this.iconColor,
this.backgroundColor,
this.titleStyle,
this.valueStyle,
this.decoration,
this.padding = const EdgeInsets.all(16.0),
this.trailing,
this.borderRadius = 12.0,
this.elevation = 2.0,
this.onTap,
this.titleBuilder,
this.iconBuilder,
}) : super(key: key);