update news
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user