https://github.com/peterzagoranski/flutter_router
Flutter routing library that adds flexible routing options like parameters and clear route definitions.
https://github.com/peterzagoranski/flutter_router
flutter flutter-router flutter-routing parameters router
Last synced: 4 months ago
JSON representation
Flutter routing library that adds flexible routing options like parameters and clear route definitions.
- Host: GitHub
- URL: https://github.com/peterzagoranski/flutter_router
- Owner: peterzagoranski
- License: mit
- Created: 2018-11-21T09:49:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-10T09:54:24.000Z (over 2 years ago)
- Last Synced: 2025-10-22T22:45:45.322Z (8 months ago)
- Topics: flutter, flutter-router, flutter-routing, parameters, router
- Language: Dart
- Homepage: https://pub.dartlang.org/packages/flutter_router
- Size: 14.6 KB
- Stars: 30
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter Router
[](https://pub.dartlang.org/packages/flutter_router)
Flutter routing library that adds flexible routing options like parameters and clear route definitions.
## Usage
To use this plugin, add `flutter_router` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
## Usage
``` dart
// Import package
import 'package:flutter_router/flutter_router.dart';
```
``` dart
runApp(MaterialApp(
onGenerateRoute: Router({
'/accounts/{id}': (context, match) => Account(id: match.parameters['id'),
'/': (context, match) => Index(),
}).get,
));
```