This commit is contained in:
Phuoc Nguyen
2025-12-03 09:04:35 +07:00
parent 19d9a3dc2d
commit 9fb4ba621b
22 changed files with 116 additions and 31 deletions

View File

@@ -70,7 +70,7 @@ class _PromotionDetailPageState extends ConsumerState<PromotionDetailPage> {
foregroundColor: AppColors.grey900,
centerTitle: false,
),
body: const const CustomLoadingIndicator(),
body: const CustomLoadingIndicator(),
),
error: (error, stack) => Scaffold(
appBar: AppBar(
@@ -202,7 +202,7 @@ class _PromotionDetailPageState extends ConsumerState<PromotionDetailPage> {
placeholder: (context, url) => Container(
height: 200,
color: AppColors.grey100,
child: const const CustomLoadingIndicator(),
child: const CustomLoadingIndicator(),
),
errorWidget: (context, url, error) => Container(
height: 200,

View File

@@ -44,7 +44,7 @@ class PromotionsPage extends ConsumerWidget {
child: promotionsAsync.when(
data: (promotions) =>
_buildPromotionsContent(context, promotions),
loading: () => const const CustomLoadingIndicator(),
loading: () => const CustomLoadingIndicator(),
error: (error, stack) => Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,

View File

@@ -58,7 +58,7 @@ class PromotionCard extends StatelessWidget {
placeholder: (context, url) => Container(
height: 150,
color: AppColors.grey100,
child: const const CustomLoadingIndicator(),
child: const CustomLoadingIndicator(),
),
errorWidget: (context, url, error) => Container(
height: 150,