mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Change the sci-fi books we use in our samples (#783)
This commit is contained in:
@@ -26,10 +26,10 @@ class BooksApp extends StatefulWidget {
|
|||||||
class _BooksAppState extends State<BooksApp> {
|
class _BooksAppState extends State<BooksApp> {
|
||||||
Book _selectedBook;
|
Book _selectedBook;
|
||||||
|
|
||||||
List<Book> books = [
|
final List<Book> books = [
|
||||||
Book('Stranger in a Strange Land', 'Robert A. Heinlein'),
|
Book('Left Hand of Darkness', 'Ursula K. Le Guin'),
|
||||||
Book('Foundation', 'Isaac Asimov'),
|
Book('Too Like the Lightning', 'Ada Palmer'),
|
||||||
Book('Fahrenheit 451', 'Ray Bradbury'),
|
Book('Kindred', 'Octavia E. Butler'),
|
||||||
];
|
];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -83,10 +83,10 @@ class BookRouterDelegate extends RouterDelegate<BookRoutePath>
|
|||||||
Book _selectedBook;
|
Book _selectedBook;
|
||||||
bool show404 = false;
|
bool show404 = false;
|
||||||
|
|
||||||
List<Book> books = [
|
final List<Book> books = [
|
||||||
Book('Stranger in a Strange Land', 'Robert A. Heinlein'),
|
Book('Left Hand of Darkness', 'Ursula K. Le Guin'),
|
||||||
Book('Foundation', 'Isaac Asimov'),
|
Book('Too Like the Lightning', 'Ada Palmer'),
|
||||||
Book('Fahrenheit 451', 'Ray Bradbury'),
|
Book('Kindred', 'Octavia E. Butler'),
|
||||||
];
|
];
|
||||||
|
|
||||||
BookRouterDelegate() : navigatorKey = GlobalKey<NavigatorState>();
|
BookRouterDelegate() : navigatorKey = GlobalKey<NavigatorState>();
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ class BooksAppState extends ChangeNotifier {
|
|||||||
Book _selectedBook;
|
Book _selectedBook;
|
||||||
|
|
||||||
final List<Book> books = [
|
final List<Book> books = [
|
||||||
Book('Stranger in a Strange Land', 'Robert A. Heinlein'),
|
Book('Left Hand of Darkness', 'Ursula K. Le Guin'),
|
||||||
Book('Foundation', 'Isaac Asimov'),
|
Book('Too Like the Lightning', 'Ada Palmer'),
|
||||||
Book('Fahrenheit 451', 'Ray Bradbury'),
|
Book('Kindred', 'Octavia E. Butler'),
|
||||||
];
|
];
|
||||||
|
|
||||||
BooksAppState() : _selectedIndex = 0;
|
BooksAppState() : _selectedIndex = 0;
|
||||||
|
|||||||
@@ -71,10 +71,10 @@ class BookRouterDelegate extends RouterDelegate<BookRoutePath>
|
|||||||
|
|
||||||
Book _selectedBook;
|
Book _selectedBook;
|
||||||
|
|
||||||
List<Book> books = [
|
final List<Book> books = [
|
||||||
Book('Stranger in a Strange Land', 'Robert A. Heinlein'),
|
Book('Left Hand of Darkness', 'Ursula K. Le Guin'),
|
||||||
Book('Foundation', 'Isaac Asimov'),
|
Book('Too Like the Lightning', 'Ada Palmer'),
|
||||||
Book('Fahrenheit 451', 'Ray Bradbury'),
|
Book('Kindred', 'Octavia E. Butler'),
|
||||||
];
|
];
|
||||||
|
|
||||||
BookRouterDelegate() : navigatorKey = GlobalKey<NavigatorState>();
|
BookRouterDelegate() : navigatorKey = GlobalKey<NavigatorState>();
|
||||||
|
|||||||
Reference in New Issue
Block a user