feat: update
This commit is contained in:
@@ -131,32 +131,10 @@ class _SummaryStat extends StatelessWidget {
|
||||
),
|
||||
const SpaceHeight(12),
|
||||
if (isLoading) ...[
|
||||
_shimmerBox(width: 56, height: 30),
|
||||
_shimmerBox(width: 110, height: 26),
|
||||
const SpaceHeight(6),
|
||||
_shimmerBox(width: 96, height: 16),
|
||||
_shimmerBox(width: 64, height: 16),
|
||||
] else ...[
|
||||
TweenAnimationBuilder<int>(
|
||||
tween: IntTween(begin: 0, end: value),
|
||||
duration: const Duration(milliseconds: 900),
|
||||
curve: Curves.easeOutCubic,
|
||||
builder: (context, animatedValue, _) => Text(
|
||||
animatedValue.thousandFormat,
|
||||
style: AppStyle.h1.copyWith(
|
||||
color: AppColor.white,
|
||||
fontWeight: FontWeight.w900,
|
||||
fontSize: 28,
|
||||
height: 1.1,
|
||||
shadows: [
|
||||
Shadow(
|
||||
color: Colors.black.withOpacity(0.25),
|
||||
blurRadius: 6,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SpaceHeight(6),
|
||||
TweenAnimationBuilder<int>(
|
||||
tween: IntTween(begin: 0, end: amount),
|
||||
duration: const Duration(milliseconds: 900),
|
||||
@@ -167,13 +145,37 @@ class _SummaryStat extends StatelessWidget {
|
||||
child: Text(
|
||||
animatedValue.currencyFormatRp,
|
||||
maxLines: 1,
|
||||
style: AppStyle.md.copyWith(
|
||||
color: AppColor.white.withOpacity(0.9),
|
||||
fontWeight: FontWeight.w700,
|
||||
style: AppStyle.h1.copyWith(
|
||||
color: AppColor.white,
|
||||
fontWeight: FontWeight.w900,
|
||||
fontSize: 22,
|
||||
height: 1.1,
|
||||
shadows: [
|
||||
Shadow(
|
||||
color: Colors.black.withOpacity(0.25),
|
||||
blurRadius: 6,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SpaceHeight(6),
|
||||
TweenAnimationBuilder<int>(
|
||||
tween: IntTween(begin: 0, end: value),
|
||||
duration: const Duration(milliseconds: 900),
|
||||
curve: Curves.easeOutCubic,
|
||||
builder: (context, animatedValue, _) => Text(
|
||||
context.lang.order_count_label(animatedValue),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: AppStyle.md.copyWith(
|
||||
color: AppColor.white.withOpacity(0.9),
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user