Skip to content

Commit ea2ba77

Browse files
committed
Merge branch 'flutter_unity_widget_2' into flutter_unity_widget_2-6000
2 parents 2b1e4d0 + be6ca53 commit ea2ba77

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* [Android] [iOS] Exports require unitypackage `fuw-6000.0.x` or newer.
1616
* Delete existing export folders like`android/unityLibrary` or `ios/UnityLibrary`when you upgrade your Unity version.
1717

18-
## 2022.3.0 (master branch)
18+
## 2022.3.0
1919
* [Web] Switch to `package:web` to support WebAssembly (WASM).
2020
* Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
2121
* Fix lint warnings to improve static analysis.

lib/src/web/web_unity_widget_controller.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ class WebUnityWidgetController extends UnityWidgetController {
256256
.querySelector('flt-platform-view')
257257
?.querySelector('iframe');
258258

259-
if (frame != null && _isJsObjectOfType(frame, 'HTMLIFrameElement')) {
259+
final JSAny? jsFrame = frame.jsify();
260+
if (frame != null && _isJsObjectOfType(jsFrame, 'HTMLIFrameElement')) {
260261
(frame as web.HTMLIFrameElement).focus();
261262
}
262263
}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: flutter_unity_widget_2
22
description: Flutter Unity 3D widget for embedding Unity game scenes in Flutter. An updated fork of flutter_unity_widget.
3-
version: 6000.1.0
3+
version: 6000.1.0+1
44
#authors:
55
# - Rex Raphael <[email protected]>
66
# - Thomas Stockx <[email protected]>
77
# - Kris Pypen <[email protected]>
8-
repository: https://github.com/timbotimbo/flutter-unity-view-widget/tree/flutter_unity_widget_2
8+
repository: https://github.com/timbotimbo/flutter-unity-view-widget
99
issue_tracker: https://github.com/juicycleff/flutter-unity-view-widget/issues
1010

1111
environment:

0 commit comments

Comments
 (0)