update news

This commit is contained in:
Phuoc Nguyen
2025-11-10 15:37:55 +07:00
parent 36bdf6613b
commit 67fd5ed142
17 changed files with 1016 additions and 211 deletions

View File

@@ -103,24 +103,24 @@ class HomePage extends ConsumerWidget {
),
// Promotions Section
// SliverToBoxAdapter(
// child: promotionsAsync.when(
// data: (promotions) => promotions.isNotEmpty
// ? PromotionSlider(
// promotions: promotions,
// onPromotionTap: (promotion) {
// // Navigate to promotion details
// context.push('/promotions/${promotion.id}');
// },
// )
// : const SizedBox.shrink(),
// loading: () => const Padding(
// padding: EdgeInsets.all(16),
// child: Center(child: CircularProgressIndicator()),
// ),
// error: (error, stack) => const SizedBox.shrink(),
// ),
// ),
SliverToBoxAdapter(
child: promotionsAsync.when(
data: (promotions) => promotions.isNotEmpty
? PromotionSlider(
promotions: promotions,
onPromotionTap: (promotion) {
// Navigate to promotion details
context.push('/promotions/${promotion.id}');
},
)
: const SizedBox.shrink(),
loading: () => const Padding(
padding: EdgeInsets.all(16),
child: Center(child: CircularProgressIndicator()),
),
error: (error, stack) => const SizedBox.shrink(),
),
),
// Quick Action Sections
SliverToBoxAdapter(