prodycrts
This commit is contained in:
@@ -7,6 +7,7 @@ library;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:worker/features/home/presentation/pages/home_page.dart';
|
||||
import 'package:worker/features/products/presentation/pages/products_page.dart';
|
||||
|
||||
/// App Router
|
||||
///
|
||||
@@ -34,16 +35,17 @@ class AppRouter {
|
||||
),
|
||||
),
|
||||
|
||||
// Products Route
|
||||
GoRoute(
|
||||
path: RouteNames.products,
|
||||
name: RouteNames.products,
|
||||
pageBuilder: (context, state) => MaterialPage(
|
||||
key: state.pageKey,
|
||||
child: const ProductsPage(),
|
||||
),
|
||||
),
|
||||
|
||||
// TODO: Add more routes as features are implemented
|
||||
// Example:
|
||||
// GoRoute(
|
||||
// path: RouteNames.products,
|
||||
// name: RouteNames.products,
|
||||
// pageBuilder: (context, state) => MaterialPage(
|
||||
// key: state.pageKey,
|
||||
// child: const ProductsPage(),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
|
||||
// Error page for unknown routes
|
||||
|
||||
Reference in New Issue
Block a user