Change the sci-fi books we use in our samples (#783)

pull/790/head
Todd Volkert 4 years ago committed by GitHub
parent 5cb6c39bd7
commit 9d50bdf494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>();

Loading…
Cancel
Save