mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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:
parent
c358ddbaf2
commit
2a5810e36f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user