binding_router

Last updated:

0 purchases

binding_router Image
binding_router Images
Add to Cart

Description:

binding router

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 #
BindingShellRouter with BindingRouter #
final router = GoRouter(initialLocation: "/", routes: [
BindingShellRouter<BottomNavController>(
binding: BottomNavBinding(),
shellBuilder: (context, state, child) => BottomNav(child: child),
routes: [
BindingRouter<HomeCon>(
binding: HomeBinding(),
path: '/',
builderPage: (context, state) =>
const NoTransitionPage(child: HomeScreen()),
routes: [
BindingRouter<DetailCon>(
binding: DetailBinding(),
path: 'detail',
builderPage: (context, state) => CustomTransitionPage<void>(
key: state.pageKey,
transitionDuration: const Duration(milliseconds: 500),
child: const DetailPage(),
transitionsBuilder:
(context, animation, secondaryAnimation, child) =>
FadeTransition(opacity: animation, child: child),
),
),
],
),
BindingRouter<SettingCon>(
binding: SettingBinding(),
path: '/settings',
builderPage: (context, state) =>
const NoTransitionPage(child: SettingScreen()),
),
]),
]);
copied to clipboard
Developer #
Made by Um Kithya Senior Flutter Developer with ❤️

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.