File tree 2 files changed +5
-5
lines changed
examples/auto_route/lib/pages
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ class BookPage extends StatelessWidget {
13
13
14
14
@override
15
15
Widget build (BuildContext context) {
16
- final booksBloc = booksControllerProvider.of (context);
17
- final book = booksBloc .book (bookId);
16
+ final booksController = booksControllerProvider.of (context);
17
+ final book = booksController .book (bookId);
18
18
return Scaffold (
19
19
appBar: AppBar (title: Text (book.name)),
20
20
body: Center (
21
- child: Text (booksBloc .book (bookId).description),
21
+ child: Text (booksController .book (bookId).description),
22
22
),
23
23
);
24
24
}
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ class BooksPage extends StatelessWidget {
27
27
28
28
@override
29
29
Widget build (BuildContext context) {
30
- final booksBloc = booksControllerProvider.of (context);
31
- final books = booksBloc .books;
30
+ final booksController = booksControllerProvider.of (context);
31
+ final books = booksController .books;
32
32
33
33
return Scaffold (
34
34
appBar: AppBar (
You can’t perform that action at this time.
0 commit comments