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

@@ -50,7 +50,11 @@ class MainScaffold extends ConsumerWidget {
onPressed: () => context.push(RouteNames.chat),
backgroundColor: const Color(0xFF35C6F4), // Accent cyan color
elevation: 4,
child: const Icon(Icons.chat_bubble, color: AppColors.white, size: 28),
child: const Icon(
Icons.chat_bubble,
color: AppColors.white,
size: 28,
),
),
)
: null,
@@ -58,7 +62,11 @@ class MainScaffold extends ConsumerWidget {
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [
BoxShadow(color: Colors.black.withValues(alpha: 0.05), blurRadius: 10, offset: const Offset(0, -2)),
BoxShadow(
color: Colors.black.withValues(alpha: 0.05),
blurRadius: 10,
offset: const Offset(0, -2),
),
],
),
child: SafeArea(
@@ -75,9 +83,18 @@ class MainScaffold extends ConsumerWidget {
currentIndex: currentIndex,
elevation: 0,
items: [
const BottomNavigationBarItem(icon: Icon(Icons.home), label: 'Trang chủ'),
const BottomNavigationBarItem(icon: Icon(Icons.loyalty), label: 'Hội viên'),
const BottomNavigationBarItem(icon: Icon(Icons.local_offer), label: 'Tin tức'),
const BottomNavigationBarItem(
icon: Icon(Icons.home),
label: 'Trang chủ',
),
const BottomNavigationBarItem(
icon: Icon(Icons.loyalty),
label: 'Hội viên',
),
const BottomNavigationBarItem(
icon: Icon(Icons.local_offer),
label: 'Tin tức',
),
BottomNavigationBarItem(
icon: Stack(
clipBehavior: Clip.none,
@@ -87,12 +104,25 @@ class MainScaffold extends ConsumerWidget {
top: -4,
right: -4,
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
decoration: BoxDecoration(color: AppColors.danger, borderRadius: BorderRadius.circular(12)),
constraints: const BoxConstraints(minWidth: 20, minHeight: 20),
padding: const EdgeInsets.symmetric(
horizontal: 6,
vertical: 2,
),
decoration: BoxDecoration(
color: AppColors.danger,
borderRadius: BorderRadius.circular(12),
),
constraints: const BoxConstraints(
minWidth: 20,
minHeight: 20,
),
child: const Text(
'5',
style: TextStyle(color: Colors.white, fontSize: 11, fontWeight: FontWeight.w700),
style: TextStyle(
color: Colors.white,
fontSize: 11,
fontWeight: FontWeight.w700,
),
textAlign: TextAlign.center,
),
),
@@ -101,7 +131,10 @@ class MainScaffold extends ConsumerWidget {
),
label: 'Thông báo',
),
const BottomNavigationBarItem(icon: Icon(Icons.account_circle), label: 'Cài đặt'),
const BottomNavigationBarItem(
icon: Icon(Icons.account_circle),
label: 'Cài đặt',
),
],
onTap: (index) {
ref.read(currentPageIndexProvider.notifier).setIndex(index);