Skip to content

Commit e5aa47d

Browse files
chore: rename bloc to controller in AutoRoute example (#10)
Co-authored-by: Alexandru Mariuti <alex@mariuti.com>
1 parent b1ef16f commit e5aa47d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/auto_route/lib/pages/book.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class BookPage extends StatelessWidget {
1313

1414
@override
1515
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);
1818
return Scaffold(
1919
appBar: AppBar(title: Text(book.name)),
2020
body: Center(
21-
child: Text(booksBloc.book(bookId).description),
21+
child: Text(booksController.book(bookId).description),
2222
),
2323
);
2424
}

examples/auto_route/lib/pages/books.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class BooksPage extends StatelessWidget {
2727

2828
@override
2929
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;
3232

3333
return Scaffold(
3434
appBar: AppBar(

0 commit comments

Comments
 (0)