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
@@ -6,6 +6,7 @@ import '../../../../application/analytic/profit_sharing_loader/profit_sharing_lo
import '../../../../common/extension/extension.dart';
import '../../../../common/theme/theme.dart';
import '../../../components/spacer/spacer.dart';
import 'profit_sharing_status.dart';
class ProfitSharingHeader extends StatelessWidget {
final ProfitSharingLoaderState state;
@@ -112,9 +113,15 @@ class ProfitSharingHeader extends StatelessWidget {
const SpaceHeight(16),
state.isFetching
? _shimmerBox(width: 140, height: 32, radius: 20)
: _chip(
context.lang.order_count_label(budget.total.orderCount),
? _shimmerBox(width: double.infinity, height: 62, radius: 14)
: ProfitSharingHeaderStats(
stats: [
(
context.lang.orders,
budget.total.orderCount.thousandFormat,
),
(context.lang.sdl, budget.total.sdl.currencyFormatRp),
],
),
],
),
@@ -123,25 +130,6 @@ class ProfitSharingHeader extends StatelessWidget {
);
}
Widget _chip(String label) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 8),
decoration: BoxDecoration(
color: AppColor.textWhite.withOpacity(0.15),
borderRadius: BorderRadius.circular(20),
border: Border.all(color: AppColor.textWhite.withOpacity(0.25)),
),
child: Text(
label,
style: AppStyle.sm.copyWith(
color: AppColor.textWhite,
fontWeight: FontWeight.w600,
fontSize: 12,
),
),
);
}
Widget _shimmerBox({
required double width,
required double height,