diff --git a/flutter_package/lib/src/load_web.dart b/flutter_package/lib/src/load_web.dart index c50b9ed4..4941261c 100644 --- a/flutter_package/lib/src/load_web.dart +++ b/flutter_package/lib/src/load_web.dart @@ -30,6 +30,7 @@ Future loadJsFile() async { // to call functions defined in Dart. js.context['rinfBindings'] = js.JsObject.jsify({}); + // Prepare to await for the module load. final loadCompleter = Completer(); rinfBindingsObject['completeRinfLoad'] = loadCompleter.complete;