binding_router 1.0.2
binding_router: ^1.0.2 copied to clipboard
Binding router is a router that extends from go_router and getx used for binding dependancies.
Binding Router Plugin #
Make implementation with go router and get x binding efficiency.
Examples #
Here are small examples that show you how to use binding router.
Coding #
final router = GoRouter(routes: [
BindingRouter(
HomeController(),
path: "/",
page: (context, state) => const HomePage(),
),
BindingRouter<TestController>(
TestController(),
binding: HomeBinding(),
path: "/detail",
page: (context, state) => const DetailPage(),
),
]);