diff --git a/packages/flutter_tools/lib/src/run_hot.dart b/packages/flutter_tools/lib/src/run_hot.dart index 64bcbca17f..fb10c04c3e 100644 --- a/packages/flutter_tools/lib/src/run_hot.dart +++ b/packages/flutter_tools/lib/src/run_hot.dart @@ -299,6 +299,9 @@ class HotRunner extends ResidentRunner { // Measure time to perform a hot restart. globals.printStatus('Benchmarking hot restart'); await restart(fullRestart: true, benchmarkMode: true); + // Wait for notifications to finish. attempt to work around + // timing issue caused by sentinel. + await Future.delayed(const Duration(seconds: 1)); globals.printStatus('Benchmarking hot reload'); // Measure time to perform a hot reload. await restart(fullRestart: false);