doc update
This commit is contained in:
@@ -14,7 +14,7 @@ $ flutter pub add thermion_flutter
|
|||||||
|
|
||||||
<Accordion title="Click to expand MacOS instructions">
|
<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'
|
platform :osx, '13.0'
|
||||||
```
|
```
|
||||||
@@ -26,7 +26,7 @@ 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>
|
</Accordion>
|
||||||
|
|
||||||
@@ -43,9 +43,6 @@ flutter
|
|||||||
3. 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';
|
|
||||||
...
|
|
||||||
|
|
||||||
class _MyAppState extends State<MyApp> {
|
class _MyAppState extends State<MyApp> {
|
||||||
late ThermionFlutterPlugin _thermionFlutterPlugin;
|
late ThermionFlutterPlugin _thermionFlutterPlugin;
|
||||||
late Future<ThermionViewer> _thermionViewer;
|
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
|
```dart
|
||||||
class _MyAppState extends State<MyApp> {
|
class _MyAppState extends State<MyApp> {
|
||||||
@@ -64,7 +62,7 @@ class _MyAppState extends State<MyApp> {
|
|||||||
late Future<ThermionViewer> _thermionViewer;
|
late Future<ThermionViewer> _thermionViewer;
|
||||||
void initState() {
|
void initState() {
|
||||||
_thermionFlutterPlugin = ThermionFlutterPlugin();
|
_thermionFlutterPlugin = ThermionFlutterPlugin();
|
||||||
_thermionViewer = _thermionFlutterPlugin.createViewer();
|
_thermionViewer = _thermionFlutterPlugin.initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user