add noti
This commit is contained in:
@@ -7,20 +7,22 @@ library;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:worker/core/theme/colors.dart';
|
||||
import 'package:worker/features/account/presentation/pages/account_page.dart';
|
||||
import 'package:worker/features/home/presentation/pages/home_page.dart';
|
||||
import 'package:worker/features/loyalty/presentation/pages/loyalty_page.dart';
|
||||
import 'package:worker/features/main/presentation/providers/current_page_provider.dart';
|
||||
import 'package:worker/features/news/presentation/pages/news_list_page.dart';
|
||||
import 'package:worker/features/notifications/presentation/pages/notifications_page.dart';
|
||||
import 'package:worker/features/promotions/presentation/pages/promotions_page.dart';
|
||||
|
||||
/// Main Scaffold Page
|
||||
///
|
||||
/// Manages bottom navigation and page switching for:
|
||||
/// - Home (index 0)
|
||||
/// - Loyalty (index 1) - Coming soon
|
||||
/// - Promotions (index 2)
|
||||
/// - Notifications (index 3) - Coming soon
|
||||
/// - Account (index 4) - Coming soon
|
||||
/// - Loyalty (index 1)
|
||||
/// - News (index 2)
|
||||
/// - Notifications (index 3)
|
||||
/// - Account (index 4)
|
||||
class MainScaffold extends ConsumerWidget {
|
||||
const MainScaffold({super.key});
|
||||
|
||||
@@ -33,8 +35,8 @@ class MainScaffold extends ConsumerWidget {
|
||||
const HomePage(),
|
||||
const LoyaltyPage(), // Loyalty
|
||||
const NewsListPage(),
|
||||
_buildComingSoonPage('Thông báo'), // Notifications
|
||||
_buildComingSoonPage('Cài đặt'), // Account
|
||||
const NotificationsPage(), // Notifications
|
||||
const AccountPage(), // Account
|
||||
];
|
||||
|
||||
return Scaffold(
|
||||
@@ -147,72 +149,4 @@ class MainScaffold extends ConsumerWidget {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// Build coming soon placeholder page
|
||||
Widget _buildComingSoonPage(String title) {
|
||||
return Scaffold(
|
||||
backgroundColor: const Color(0xFFF4F6F8),
|
||||
body: SafeArea(
|
||||
child: Column(
|
||||
children: [
|
||||
// Header
|
||||
Container(
|
||||
width: double.infinity,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withValues(alpha: 0.05),
|
||||
blurRadius: 8,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Text(
|
||||
title,
|
||||
style: const TextStyle(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Color(0xFF212121),
|
||||
),
|
||||
),
|
||||
),
|
||||
// Coming soon content
|
||||
Expanded(
|
||||
child: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.construction,
|
||||
size: 80,
|
||||
color: AppColors.grey500.withValues(alpha: 0.5),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const Text(
|
||||
'Đang phát triển',
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColors.grey500,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
const Text(
|
||||
'Tính năng này sẽ sớm ra mắt',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: AppColors.grey500,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user