Stocks list doesn't update when stocks are loaded

Previously, we passed widgets up the hierarchy to display them in the overlay,
but that breaks the change propagation logic because those widgets won't get
rebuilt.  Now we pass WidgetBuilders instead, which can be rebuilt when the
overlay rebuilds.

Fixes #1913
This commit is contained in:
Adam Barth
2015-11-03 14:14:19 -08:00
parent a0c8a4c61e
commit 78d35391ce
12 changed files with 41 additions and 42 deletions

View File

@@ -4,7 +4,8 @@ import 'package:test/test.dart';
import 'widget_tester.dart';
class TestOverlayRoute extends OverlayRoute {
List<Widget> createWidgets() => <Widget>[ new Text('Overlay') ];
List<WidgetBuilder> get builders => <WidgetBuilder>[ _build ];
Widget _build(BuildContext context) => new Text('Overlay');
}
bool _isOnStage(Element element) {