Sfoglia il codice sorgente

Merge pull request #40 from namiwang/patch-1

Update README.md for 1.3.0
Luke 7 anni fa
parent
commit
35a2254668
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -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:
 After instantiating the router, you will need to define your routes and your route handlers:
 ```dart
 ```dart
 var usersHandler = new Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {
 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) {
 void defineRoutes(Router router) {