This commit is contained in:
Nick Fisher
2024-06-15 21:57:20 +08:00
parent 13df1a75a1
commit d7e65930b4
3 changed files with 11 additions and 9 deletions

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 KiB

After

Width:  |  Height:  |  Size: 724 KiB

View File

@@ -2,19 +2,17 @@
> You can find the entire project below in the [examples/flutter/quickstart](examples/flutter/quickstart) folder of the repository. > You can find the entire project below in the [examples/flutter/quickstart](examples/flutter/quickstart) folder of the repository.
1. Switch to Flutter master channel 1. Switch to Flutter master channel, create a new project, then add `thermion_flutter` as a dependency
```bash ```bash
$ flutter channel master $ flutter channel master
$ flutter create thermion_sample_project && cd thermion_sample_project
$ flutter pub add thermion_flutter
``` ```
2. Add [thermion_flutter] as a dependency to your `pubspec.yaml`. 2. If running on MacOS, change the minimum deployment target to OSX 13
```bash <Accordion title="Click to expand MacOS instructions">
$ cd /path/to/your/flutter/project$ flutter pub add thermion_flutter```
```
3. If running on MacOS, change the minimum deployment targetr to OSX 13
In `Podfile` In `Podfile`
``` ```
@@ -26,7 +24,11 @@ Then open XCode:
open macos/Runner.xcworkspace open macos/Runner.xcworkspace
``` ```
and change the minimum deployment target to 13.0 and change the minimum deployment target to 13.0:
![images/macos_min_deployment.png]
</Accordion>
2. Add a folder containing your assets (glTF model + skybox ktx) to your `pubspec.yaml` asset list 2. Add a folder containing your assets (glTF model + skybox ktx) to your `pubspec.yaml` asset list
@@ -38,7 +40,7 @@ flutter
- assets/ - assets/
``` ```
2. Create an instance of `ThermionFlutterPlugin` in your app. 3. Create an instance of `ThermionFlutterPlugin` in your app.
```dart ```dart
import 'package:thermion_flutter/thermion_flutter.dart'; import 'package:thermion_flutter/thermion_flutter.dart';