news page

This commit is contained in:
Phuoc Nguyen
2025-11-03 11:48:41 +07:00
parent 21c1c3372c
commit ea485d8c3a
14 changed files with 2017 additions and 13 deletions

View File

@@ -21,6 +21,7 @@ import 'package:worker/features/products/presentation/pages/products_page.dart';
import 'package:worker/features/promotions/presentation/pages/promotion_detail_page.dart';
import 'package:worker/features/quotes/presentation/pages/quotes_page.dart';
import 'package:worker/features/price_policy/price_policy.dart';
import 'package:worker/features/news/presentation/pages/news_list_page.dart';
/// App Router
///
@@ -200,6 +201,16 @@ class AppRouter {
),
),
// News Route
GoRoute(
path: RouteNames.news,
name: RouteNames.news,
pageBuilder: (context, state) => MaterialPage(
key: state.pageKey,
child: const NewsListPage(),
),
),
// TODO: Add more routes as features are implemented
],
@@ -322,6 +333,10 @@ class RouteNames {
// Price Policy Route
static const String pricePolicy = '/price-policy';
// News Route
static const String news = '/news';
static const String newsDetail = '/news/:id';
// Chat Route
static const String chat = '/chat';