add auth, format
This commit is contained in:
@@ -40,13 +40,9 @@ class PromotionsPage extends ConsumerWidget {
|
||||
// Scrollable content
|
||||
Expanded(
|
||||
child: promotionsAsync.when(
|
||||
data: (promotions) => _buildPromotionsContent(
|
||||
context,
|
||||
promotions,
|
||||
),
|
||||
loading: () => const Center(
|
||||
child: CircularProgressIndicator(),
|
||||
),
|
||||
data: (promotions) =>
|
||||
_buildPromotionsContent(context, promotions),
|
||||
loading: () => const Center(child: CircularProgressIndicator()),
|
||||
error: (error, stack) => Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
@@ -138,10 +134,7 @@ class PromotionsPage extends ConsumerWidget {
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'Hãy quay lại sau để xem các ưu đãi mới',
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
color: AppColors.grey500,
|
||||
),
|
||||
style: const TextStyle(fontSize: 14, color: AppColors.grey500),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -185,11 +178,8 @@ class PromotionsPage extends ConsumerWidget {
|
||||
),
|
||||
|
||||
// Bottom padding for navigation clearance
|
||||
const SliverToBoxAdapter(
|
||||
child: SizedBox(height: 16),
|
||||
),
|
||||
const SliverToBoxAdapter(child: SizedBox(height: 16)),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user