news page
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user