StatCard constructor

const StatCard({
  1. Key? key,
  2. required String title,
  3. required String value,
  4. required IconData icon,
  5. Color? iconColor,
  6. Color? backgroundColor,
  7. TextStyle? titleStyle,
  8. TextStyle? valueStyle,
  9. BoxDecoration? decoration,
  10. EdgeInsetsGeometry padding = const EdgeInsets.all(16.0),
  11. Widget? trailing,
  12. double borderRadius = 12.0,
  13. double elevation = 2.0,
  14. VoidCallback? onTap,
  15. Widget titleBuilder(
    1. BuildContext context,
    2. String title
    )?,
  16. Widget iconBuilder(
    1. BuildContext context,
    2. IconData icon,
    3. 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);