@@ -39,13 +39,13 @@ This plugin requires Flutter >= 3.3.0
3939First depend on the library by adding this to your packages ` pubspec.yaml ` :
4040``` yaml
4141dependencies :
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
4343` ` `
4444
4545Now inside your Dart code you can import it.
4646
4747` ` ` dart
48- import 'package:flutter_unity_widget/flutter_unity_widget .dart';
48+ import 'package:flutter_unity_widget_2/flutter_unity_widget_2 .dart';
4949```
5050
5151You 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.
188188``` diff
189189 dependencies {
190190 // build.gradle
191- + implementation project(':flutter_unity_widget ')
191+ + implementation project(':flutter_unity_widget_2 ')
192192 // build.gradle.kts (Flutter 3.29+)
193- + implementation(project(":flutter_unity_widget "))
193+ + implementation(project(":flutter_unity_widget_2 "))
194194 }
195195```
196196- 3.2. Edit your android MainActivity file.
@@ -342,7 +342,7 @@ allprojects {
342342``` diff
343343 import UIKit
344344 import Flutter
345- + import flutter_unity_widget
345+ + import flutter_unity_widget_2
346346
347347 @UIApplicationMain
348348 @objc class AppDelegate: FlutterAppDelegate {
@@ -360,7 +360,7 @@ allprojects {
360360
361361 3.2. If you're using Objective-C, open the * ios/Runner/main.m* file and change the following:
362362``` diff
363- + #import "flutter_unity_widget .swift.h"
363+ + #import "flutter_unity_widget_2 .swift.h"
364364
365365 int main(int argc, char * argv[]) {
366366 @autoreleasepool {
@@ -590,7 +590,7 @@ If you computer does not have an ARM processor, like most computers running on I
590590
591591``` dart
592592import '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';
594594
595595void main() {
596596 runApp(
@@ -647,7 +647,7 @@ class _UnityDemoScreenState extends State<UnityDemoScreen> {
647647
648648``` dart
649649import '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';
651651
652652void main() => runApp(const MyApp());
653653
0 commit comments