mirror of
https://github.com/flutter/samples.git
synced 2026-07-15 13:32:35 +00:00
Cleanup to navigation_and_routing sample (#881)
- make more things private and final, where possible - remove unused members - used expression bodies, where possible
This commit is contained in:
@@ -41,9 +41,9 @@ class BookstoreScaffoldBody extends StatelessWidget {
|
||||
)
|
||||
else if (currentRoute.pathTemplate.startsWith('/books') ||
|
||||
currentRoute.pathTemplate == '/')
|
||||
FadeTransitionPage<void>(
|
||||
key: const ValueKey('books'),
|
||||
child: BooksScreen(currentRoute: currentRoute),
|
||||
const FadeTransitionPage<void>(
|
||||
key: ValueKey('books'),
|
||||
child: BooksScreen(),
|
||||
)
|
||||
|
||||
// Avoid building a Navigator with an empty `pages` list when the
|
||||
|
||||
Reference in New Issue
Block a user