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> {
|
||||
Book _selectedBook;
|
||||
|
||||
List<Book> books = [
|
||||
Book('Stranger in a Strange Land', 'Robert A. Heinlein'),
|
||||
Book('Foundation', 'Isaac Asimov'),
|
||||
Book('Fahrenheit 451', 'Ray Bradbury'),
|
||||
final List<Book> books = [
|
||||
Book('Left Hand of Darkness', 'Ursula K. Le Guin'),
|
||||
Book('Too Like the Lightning', 'Ada Palmer'),
|
||||
Book('Kindred', 'Octavia E. Butler'),
|
||||
];
|
||||
|
||||
@override
|
||||
|
||||
@@ -83,10 +83,10 @@ class BookRouterDelegate extends RouterDelegate<BookRoutePath>
|
||||
Book _selectedBook;
|
||||
bool show404 = false;
|
||||
|
||||
List<Book> books = [
|
||||
Book('Stranger in a Strange Land', 'Robert A. Heinlein'),
|
||||
Book('Foundation', 'Isaac Asimov'),
|
||||
Book('Fahrenheit 451', 'Ray Bradbury'),
|
||||
final List<Book> books = [
|
||||
Book('Left Hand of Darkness', 'Ursula K. Le Guin'),
|
||||
Book('Too Like the Lightning', 'Ada Palmer'),
|
||||
Book('Kindred', 'Octavia E. Butler'),
|
||||
];
|
||||
|
||||
BookRouterDelegate() : navigatorKey = GlobalKey<NavigatorState>();
|
||||
|
||||
@@ -45,9 +45,9 @@ class BooksAppState extends ChangeNotifier {
|
||||
Book _selectedBook;
|
||||
|
||||
final List<Book> books = [
|
||||
Book('Stranger in a Strange Land', 'Robert A. Heinlein'),
|
||||
Book('Foundation', 'Isaac Asimov'),
|
||||
Book('Fahrenheit 451', 'Ray Bradbury'),
|
||||
Book('Left Hand of Darkness', 'Ursula K. Le Guin'),
|
||||
Book('Too Like the Lightning', 'Ada Palmer'),
|
||||
Book('Kindred', 'Octavia E. Butler'),
|
||||
];
|
||||
|
||||
BooksAppState() : _selectedIndex = 0;
|
||||
|
||||
@@ -71,10 +71,10 @@ class BookRouterDelegate extends RouterDelegate<BookRoutePath>
|
||||
|
||||
Book _selectedBook;
|
||||
|
||||
List<Book> books = [
|
||||
Book('Stranger in a Strange Land', 'Robert A. Heinlein'),
|
||||
Book('Foundation', 'Isaac Asimov'),
|
||||
Book('Fahrenheit 451', 'Ray Bradbury'),
|
||||
final List<Book> books = [
|
||||
Book('Left Hand of Darkness', 'Ursula K. Le Guin'),
|
||||
Book('Too Like the Lightning', 'Ada Palmer'),
|
||||
Book('Kindred', 'Octavia E. Butler'),
|
||||
];
|
||||
|
||||
BookRouterDelegate() : navigatorKey = GlobalKey<NavigatorState>();
|
||||
|
||||
Reference in New Issue
Block a user