feat: update order summary
Build Android APK (split per ABI) / build-apk (push) Waiting to run
Build & Deploy iOS to TestFlight / build-and-deploy (push) Waiting to run

This commit is contained in:
efrilm
2026-10-20 21:54:08 +07:00
parent f1eb4d56ca
commit e7c77051ab
2 changed files with 12 additions and 35 deletions
@@ -34,26 +34,7 @@ class OrderSummary extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
IntrinsicHeight(
child: Row(
children: [
Expanded(
child: _SummaryStat(
title: context.lang.total_orders,
value: totalOrder.count,
amount: totalOrder.amount,
icon: Icons.receipt_long_rounded,
iconBackground: AppColor.white.withOpacity(0.2),
isLoading: isLoading,
),
),
VerticalDivider(
width: 28,
thickness: 1,
color: AppColor.white.withOpacity(0.25),
),
Expanded(
child: _SummaryStat(
_SummaryStat(
title: context.lang.pending_order,
value: totalPendingOrder.count,
amount: totalPendingOrder.amount,
@@ -61,10 +42,6 @@ class OrderSummary extends StatelessWidget {
iconBackground: _pendingColor,
isLoading: isLoading,
),
),
],
),
),
const SpaceHeight(16),
_PendingRatioBar(ratio: pendingRatio),
const SpaceHeight(8),
@@ -113,7 +90,7 @@ class _SummaryStat extends StatelessWidget {
color: iconBackground,
borderRadius: BorderRadius.circular(10),
),
child: Icon(icon, color: AppColor.white, size: 16),
child: Icon(icon, color: AppColor.white, size: 20),
),
const SpaceWidth(8),
Expanded(
@@ -121,7 +98,7 @@ class _SummaryStat extends StatelessWidget {
title,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: AppStyle.sm.copyWith(
style: AppStyle.lg.copyWith(
color: AppColor.white.withOpacity(0.9),
fontWeight: FontWeight.w600,
),
@@ -133,7 +110,7 @@ class _SummaryStat extends StatelessWidget {
if (isLoading) ...[
_shimmerBox(width: 110, height: 26),
const SpaceHeight(6),
_shimmerBox(width: 64, height: 16),
_shimmerBox(width: 80, height: 20),
] else ...[
TweenAnimationBuilder<int>(
tween: IntTween(begin: 0, end: amount),
@@ -170,7 +147,7 @@ class _SummaryStat extends StatelessWidget {
context.lang.order_count_label(animatedValue),
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: AppStyle.md.copyWith(
style: AppStyle.xl.copyWith(
color: AppColor.white.withOpacity(0.9),
fontWeight: FontWeight.w700,
),
+1 -1
View File
@@ -3,7 +3,7 @@ description: "A new Flutter project."
publish_to: "none"
version: 1.0.4+17
version: 1.0.4+18
environment:
sdk: ^3.8.1