Point from gallery's routing table to stocks'. (#9287)
The stocks routing table is a clearer example of how to do this. People know to look at the gallery, but don't think to look at the stocks version. This points them from the former to the latter.
This commit is contained in:
@@ -13,6 +13,9 @@ import 'item.dart';
|
||||
import 'updates.dart';
|
||||
|
||||
final Map<String, WidgetBuilder> _kRoutes = new Map<String, WidgetBuilder>.fromIterable(
|
||||
// For a different example of how to set up an application routing table,
|
||||
// consider the Stocks example:
|
||||
// https://github.com/flutter/flutter/blob/master/examples/stocks/lib/main.dart
|
||||
kAllGalleryItems,
|
||||
key: (GalleryItem item) => item.routeName,
|
||||
value: (GalleryItem item) => item.buildRoute,
|
||||
|
||||
Reference in New Issue
Block a user