|
|
|
@ -9,6 +9,7 @@ import '../screens/settings.dart';
|
|
|
|
|
import '../widgets/fade_transition_page.dart';
|
|
|
|
|
import 'authors.dart';
|
|
|
|
|
import 'books.dart';
|
|
|
|
|
import 'scaffold.dart';
|
|
|
|
|
|
|
|
|
|
/// Displays the contents of the body of [BookstoreScaffold]
|
|
|
|
|
class BookstoreScaffoldBody extends StatelessWidget {
|
|
|
|
@ -45,12 +46,12 @@ class BookstoreScaffoldBody extends StatelessWidget {
|
|
|
|
|
child: BooksScreen(currentRoute: currentRoute),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Avoid building a Navigator with an empty `pages` list when the
|
|
|
|
|
// RouteState is set to an unexpected path, such as /signin.
|
|
|
|
|
//
|
|
|
|
|
// Since RouteStateScope is an InheritedNotifier, any change to the
|
|
|
|
|
// route will result in a call to this build method, even though this
|
|
|
|
|
// widget isn't built when those routes are active.
|
|
|
|
|
// Avoid building a Navigator with an empty `pages` list when the
|
|
|
|
|
// RouteState is set to an unexpected path, such as /signin.
|
|
|
|
|
//
|
|
|
|
|
// Since RouteStateScope is an InheritedNotifier, any change to the
|
|
|
|
|
// route will result in a call to this build method, even though this
|
|
|
|
|
// widget isn't built when those routes are active.
|
|
|
|
|
else
|
|
|
|
|
FadeTransitionPage<void>(
|
|
|
|
|
key: const ValueKey('empty'),
|
|
|
|
|