Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allentown521/go_router
for focus twitter x base go_router 4.0 modifided by url: https://github.com/robertodoering/packages path: packages/go_router ref: c0432b8b05bd678b971e1b6bde783c82d9eee98c
https://github.com/allentown521/go_router
Last synced: 7 days ago
JSON representation
for focus twitter x base go_router 4.0 modifided by url: https://github.com/robertodoering/packages path: packages/go_router ref: c0432b8b05bd678b971e1b6bde783c82d9eee98c
- Host: GitHub
- URL: https://github.com/allentown521/go_router
- Owner: allentown521
- License: bsd-3-clause
- Created: 2023-11-20T12:32:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-20T12:34:35.000Z (about 1 year ago)
- Last Synced: 2024-11-09T11:28:08.379Z (2 months ago)
- Language: Dart
- Size: 221 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# Welcome to go_router!
The purpose of [the go_router package](https://pub.dev/packages/go_router) is to
use declarative routes to reduce complexity, regardless of the platform you're
targeting (mobile, web, desktop), handle deep and dynamic linking from
Android, iOS and the web, along with a number of other navigation-related
scenarios, while still (hopefully) providing an easy-to-use developer
experience.You can get started with go_router with code as simple as this:
```dart
class App extends StatelessWidget {
App({Key? key}) : super(key: key);@override
Widget build(BuildContext context) => MaterialApp.router(
routeInformationProvider: _router.routeInformationProvider,
routeInformationParser: _router.routeInformationParser,
routerDelegate: _router.routerDelegate,
title: 'GoRouter Example',
);final GoRouter _router = GoRouter(
routes: [
GoRoute(
path: '/',
builder: (BuildContext context, GoRouterState state) => const Page1Screen(),
),
GoRoute(
path: '/page2',
builder: (BuildContext context, GoRouterState state) => const Page2Screen(),
),
],
);
}class Page1Screen extends StatelessWidget {...}
class Page2Screen extends StatelessWidget {...}
```# See [gorouter.dev](https://gorouter.dev) for go_router docs & samples