report product

This commit is contained in:
efrilm
2025-11-03 19:34:46 +07:00
parent 3bb6bd653e
commit 14c3c69ad6
19 changed files with 2557 additions and 2 deletions
@@ -8,18 +8,20 @@ class ReportSummaryCard extends StatelessWidget {
final IconData icon;
final String title;
final String value;
final String? subtitle;
const ReportSummaryCard({
super.key,
required this.color,
required this.icon,
required this.title,
required this.value,
this.subtitle,
});
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.all(18),
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: AppColor.white,
borderRadius: BorderRadius.circular(14),
@@ -55,6 +57,16 @@ class ReportSummaryCard extends StatelessWidget {
color: AppColor.textPrimary,
),
),
if (subtitle != null) ...[
SpaceHeight(2),
Text(
subtitle!,
style: AppStyle.sm.copyWith(
fontWeight: FontWeight.w600,
color: AppColor.textSecondary,
),
),
],
],
),
),