Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 3ff2fe4

Browse files
committed
Renaming some files. removing empty onError closures from query_service
1 parent 1f858d8 commit 3ff2fe4

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

Chapter_05/recipe_book_router.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ class RecipeBookRouteInitializer implements RouteInitializer {
77
..addRoute(
88
name: 'add',
99
path: '/add',
10-
enter: view('view/add.html'))
10+
enter: view('view/addRecipe.html'))
1111
..addRoute(
1212
name: 'recipe',
1313
path: '/recipe/:recipeId',
1414
mount: (Route route) => route
1515
..addRoute(
1616
name: 'view',
1717
path: '/view',
18-
enter: view('view/view.html'))
18+
enter: view('view/viewRecipe.html'))
1919
..addRoute(
2020
name: 'edit',
2121
path: '/edit',
22-
enter: view('view/edit.html'))
22+
enter: view('view/editRecipe.html'))
2323
..addRoute(
2424
name: 'view_default',
2525
defaultRoute: true,

Chapter_05/service/query_service.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class QueryService {
2323
Recipe r = new Recipe.fromJsonMap(recipe);
2424
_recipesCache[r.id] = r;
2525
}
26-
return _recipesCache.length;
2726
});
2827
}
2928

@@ -34,7 +33,6 @@ class QueryService {
3433
for (String category in response.data) {
3534
_categoriesCache.add(category);
3635
}
37-
return _categoriesCache.length;
3836
});
3937
}
4038

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)