feat: report purchasing
Build & Deploy iOS to TestFlight / build-and-deploy (push) Waiting to run

This commit is contained in:
efrilm
2026-06-22 14:30:38 +07:00
parent c1cefb122b
commit 0b70194d8e
19 changed files with 592 additions and 71 deletions
@@ -308,6 +308,30 @@ class _PurchasePageState extends State<PurchasePage>
],
),
const SpaceHeight(12),
Row(
children: [
Expanded(
child: PurchaseStatCard(
title: 'Bahan Baku',
value: s.rawMaterialPurchases.currencyFormatRp,
icon: LineIcons.leaf,
iconColor: AppColor.secondary,
cardAnimation: _fadeAnimation,
),
),
const SpaceWidth(12),
Expanded(
child: PurchaseStatCard(
title: 'Pengeluaran',
value: s.expensePurchases.currencyFormatRp,
icon: LineIcons.receipt,
iconColor: AppColor.warning,
cardAnimation: _fadeAnimation,
),
),
],
),
const SpaceHeight(12),
Row(
children: [
Expanded(
@@ -325,7 +349,7 @@ class _PurchasePageState extends State<PurchasePage>
title: 'Rata-rata PO',
value: s.averagePurchaseOrderValue.round().currencyFormatRp,
icon: LineIcons.dollarSign,
iconColor: AppColor.secondary,
iconColor: AppColor.secondaryDark,
cardAnimation: _fadeAnimation,
),
),
@@ -336,7 +360,7 @@ class _PurchasePageState extends State<PurchasePage>
children: [
Expanded(
child: PurchaseStatCard(
title: 'Bahan Baku',
title: 'Item Bahan Baku',
value: '${s.totalIngredients} item',
icon: LineIcons.leaf,
iconColor: AppColor.secondaryDark,
@@ -554,6 +578,14 @@ class _PurchasePageState extends State<PurchasePage>
Expanded(child: _shimmerCard(height: 100)),
],
),
const SpaceHeight(12),
Row(
children: [
Expanded(child: _shimmerCard(height: 100)),
const SpaceWidth(12),
Expanded(child: _shimmerCard(height: 100)),
],
),
],
);
}