Merge pull request #40 from namiwang/patch-1

Update README.md for 1.3.0
This commit is contained in:
Luke 2018-03-16 08:52:27 -07:00 committed by GitHub
commit 35a2254668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ you can access the router in other areas in your application.
After instantiating the router, you will need to define your routes and your route handlers:
```dart
var usersHandler = new Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {
return new UsersScreen(params["id"]);
return new UsersScreen(params["id"][0]);
});
void defineRoutes(Router router) {