fractal_router

所属分类:分形几何
开发工具:Dart
文件大小:0KB
下载次数:0
上传日期:2024-02-09 22:19:27
上 传 者sh-1993
说明:  Flutter的无限递归路由器
(Infinitely recursive router for Flutter)

文件列表:
docs/
example/
lib/
.metadata
LICENSE
analysis_options.yaml
pubspec.lock
pubspec.yaml

# fractal_router Infinitely recursive router for Flutter. We dream of a world where routing is independent, scoped and composable. Lets dive. ## Quick Start fractal_router is meant to be intuitive. here is how you define your routes: ```dart FractalRoute( path: '/', builder: (context, router) => HomeScreen(), ), FractalRoute( path: '/books', builder: (context, router) => BooksScreen(), routes: [ FractalRoute( path: '/:id', builder: (context, router) => BookScreen(router.params['id']), ), ] ), ``` here is how you navigate: ```dart // We are in /books FractalRouter.of(context).change('1'); // We go to /books/1 ``` and here is how you go back: ```dart // We are in /books/1 Navigator.of(context).pop(); // We go to /books ```

近期下载者

相关文件


收藏者