@@ -39,13 +39,13 @@ This plugin requires Flutter >= 3.3.0
39
39
First depend on the library by adding this to your packages ` pubspec.yaml ` :
40
40
``` yaml
41
41
dependencies :
42
- flutter_unity_widget : ^2022.2.1 # use the latest compatible version
42
+ flutter_unity_widget_2 : ^2022.2.2 # use the latest compatible version
43
43
` ` `
44
44
45
45
Now inside your Dart code you can import it.
46
46
47
47
` ` ` dart
48
- import 'package:flutter_unity_widget/flutter_unity_widget .dart';
48
+ import 'package:flutter_unity_widget_2/flutter_unity_widget_2 .dart';
49
49
```
50
50
51
51
You will need to open and export a Unity project, even for running the example. Your build will fail if you only include the widget in Flutter!
@@ -188,9 +188,9 @@ This requires a flutter_unity_widget version that is newer than 2022.2.1.
188
188
``` diff
189
189
dependencies {
190
190
// build.gradle
191
- + implementation project(':flutter_unity_widget ')
191
+ + implementation project(':flutter_unity_widget_2 ')
192
192
// build.gradle.kts (Flutter 3.29+)
193
- + implementation(project(":flutter_unity_widget "))
193
+ + implementation(project(":flutter_unity_widget_2 "))
194
194
}
195
195
```
196
196
- 3.2. Edit your android MainActivity file.
@@ -342,7 +342,7 @@ allprojects {
342
342
``` diff
343
343
import UIKit
344
344
import Flutter
345
- + import flutter_unity_widget
345
+ + import flutter_unity_widget_2
346
346
347
347
@UIApplicationMain
348
348
@objc class AppDelegate: FlutterAppDelegate {
@@ -360,7 +360,7 @@ allprojects {
360
360
361
361
3.2. If you're using Objective-C, open the * ios/Runner/main.m* file and change the following:
362
362
``` diff
363
- + #import "flutter_unity_widget .swift.h"
363
+ + #import "flutter_unity_widget_2 .swift.h"
364
364
365
365
int main(int argc, char * argv[]) {
366
366
@autoreleasepool {
@@ -590,7 +590,7 @@ If you computer does not have an ARM processor, like most computers running on I
590
590
591
591
``` dart
592
592
import 'package:flutter/material.dart';
593
- import 'package:flutter_unity_widget/flutter_unity_widget .dart';
593
+ import 'package:flutter_unity_widget_2/flutter_unity_widget_2 .dart';
594
594
595
595
void main() {
596
596
runApp(
@@ -647,7 +647,7 @@ class _UnityDemoScreenState extends State<UnityDemoScreen> {
647
647
648
648
``` dart
649
649
import 'package:flutter/material.dart';
650
- import 'package:flutter_unity_widget/flutter_unity_widget .dart';
650
+ import 'package:flutter_unity_widget_2/flutter_unity_widget_2 .dart';
651
651
652
652
void main() => runApp(const MyApp());
653
653
0 commit comments