doc update

This commit is contained in:
Nick Fisher
2024-06-17 10:09:25 +08:00
parent 44842ecec1
commit 701519f3a7

View File

@@ -14,7 +14,7 @@ $ flutter pub add thermion_flutter
<Accordion title="Click to expand MacOS instructions">
In `Podfile`
In `macos/Podfile`, make sure the `platform` entry refers to `13.0`.
```
platform :osx, '13.0'
```
@@ -26,7 +26,7 @@ open macos/Runner.xcworkspace
and change the minimum deployment target to 13.0:
![images/macos_min_deployment.png]
![XCode screenshot](images/macos_min_deployment.png)
</Accordion>
@@ -43,9 +43,6 @@ flutter
3. Create an instance of `ThermionFlutterPlugin` in your app.
```dart
import 'package:thermion_flutter/thermion_flutter.dart';
...
class _MyAppState extends State<MyApp> {
  late ThermionFlutterPlugin _thermionFlutterPlugin; 
late Future<ThermionViewer> _thermionViewer;
@@ -55,7 +52,8 @@ class _MyAppState extends State<MyApp> {
}
}```
3. Add a `ThermionWidget` to your widget hierarchy
4. Add a `ThermionWidget` to your widget hierarchy
```dart
class _MyAppState extends State<MyApp> {
@@ -64,7 +62,7 @@ class _MyAppState extends State<MyApp> {
late Future<ThermionViewer> _thermionViewer;
void initState() {   
_thermionFlutterPlugin = ThermionFlutterPlugin();
_thermionViewer = _thermionFlutterPlugin.createViewer();
_thermionViewer = _thermionFlutterPlugin.initialize();
}   
Widget build(BuildContext context) {