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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user