We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b233e52 commit 8fcf846Copy full SHA for 8fcf846
lib/src/io/device_method.dart
@@ -5,6 +5,7 @@ import 'package:flutter/gestures.dart';
5
import 'package:flutter/material.dart';
6
import 'package:flutter/rendering.dart';
7
import 'package:flutter/services.dart';
8
+import 'package:flutter_unity_widget/src/io/flutter_unity_platform.dart';
9
import 'package:stream_transform/stream_transform.dart';
10
11
import '../helpers/events.dart';
@@ -46,6 +47,7 @@ class MethodChannelUnityWidget extends UnityWidgetPlatform {
46
47
try {
48
if (unityId != null) {
49
FlutterUnityController.instance.lastUnityId = unityId;
50
+ FlutterUnityPlatform.instance.dispose();
51
// _unityStreamController.close();
52
}
53
} catch (e) {
0 commit comments