Revert "Clean up the bindings APIs (#83843)" (#86386)

This reverts commit e2490f2906.
This commit is contained in:
Ian Hickson
2021-07-13 15:47:40 -07:00
committed by GitHub
parent e2490f2906
commit c800b9c3e4
248 changed files with 1265 additions and 1614 deletions

View File

@@ -32,7 +32,7 @@ Future<void> main() async {
child: ComplexLayoutApp(),
),
));
await SchedulerBinding.instance.endOfFrame;
await SchedulerBinding.instance?.endOfFrame;
/// Wait 50ms to allow the raster thread to actually put up the frame. (The
/// endOfFrame future ends when we send the data to the engine, before
@@ -50,9 +50,9 @@ Future<void> main() async {
child: ComplexLayoutApp(),
),
));
await SchedulerBinding.instance.endOfFrame;
await SchedulerBinding.instance?.endOfFrame;
final WidgetController controller = LiveWidgetController(WidgetsBinding.instance);
final WidgetController controller = LiveWidgetController(WidgetsBinding.instance!);
// Scroll down
for (int iteration = 0; iteration < maxIterations; iteration += 1) {