feat: update parent category analytic
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s

This commit is contained in:
efrilm
2026-10-03 00:38:32 +07:00
parent 36bc9e0f9e
commit 288d0d75a0
21 changed files with 1366 additions and 344 deletions
@@ -183,50 +183,55 @@ class _SummaryCard extends StatelessWidget {
Row(
children: [
Expanded(
child: ProfitSharingMetric(
child: ProfitSharingStatTile(
icon: Icons.category_rounded,
label: context.lang.sub_category,
value: '${summary.categoryCount}',
),
),
const SpaceWidth(10),
Expanded(
child: ProfitSharingMetric(
child: ProfitSharingStatTile(
icon: Icons.inventory_2_rounded,
label: context.lang.products,
value: '${summary.productCount}',
color: AppColor.info,
),
),
const SpaceWidth(10),
Expanded(
child: ProfitSharingMetric(
child: ProfitSharingStatTile(
icon: Icons.receipt_long_rounded,
label: context.lang.orders,
value: summary.orderCount.thousandFormat,
color: AppColor.warning,
),
),
],
),
const Padding(
padding: EdgeInsets.symmetric(vertical: 12),
child: Divider(height: 1, color: AppColor.borderLight),
const SpaceHeight(12),
ProfitSharingSdlStrip(
amount: summary.sdl,
feePercent: summary.ownerFeePercent,
),
const SpaceHeight(12),
Row(
children: [
Expanded(
child: ProfitSharingMetric(
label: context.lang.std_hpp,
value: formatPercent(summary.standardHppPercentage),
child: Text(
context.lang.gross_profit,
style: AppStyle.sm.copyWith(color: AppColor.textSecondary),
),
),
Expanded(
child: ProfitSharingMetric(
label: context.lang.real_hpp,
value: formatPercent(summary.realHppPercentage),
valueColor: statusColor(summary.realHppPercentage),
),
),
Expanded(
child: ProfitSharingMetric(
label: context.lang.gross_profit,
value: summary.grossProfit.currencyFormatRp,
Text(
summary.grossProfit.currencyFormatRp,
style: AppStyle.md.copyWith(
color: AppColor.textPrimary,
fontWeight: FontWeight.w800,
),
),
],