Clean up the bindings APIs. (#89451)

This commit is contained in:
Ian Hickson
2022-02-03 14:55:15 -08:00
committed by GitHub
parent 03f1d37935
commit ab89ce285f
327 changed files with 1928 additions and 1471 deletions

View File

@@ -31,7 +31,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
@@ -49,9 +49,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) {