createRouter function
GoRouter
createRouter()
Implementation
GoRouter createRouter() {
return GoRouter(
initialLocation: '/home',
routes: [
GoRoute(
name:'Home',
path: '/home',
builder: (context, state) => const HomePage(),
),
GoRoute(
name:'TestUser',
path: '/test_user',
builder: (context, state) => const TestUserPage(),
),
// Routes will be added here dynamically
],
);
}