add auth, format

This commit is contained in:
Phuoc Nguyen
2025-11-07 11:52:06 +07:00
parent 24a8508fce
commit 3803bd26e0
173 changed files with 8505 additions and 7116 deletions

View File

@@ -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)),
],
);
}
}