doc: README
This commit is contained in:
@@ -24,12 +24,16 @@
|
|||||||
|
|
||||||
### Quickstart (Flutter)
|
### Quickstart (Flutter)
|
||||||
|
|
||||||
|
From the command line:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
flutter channel master
|
flutter channel master
|
||||||
flutter upgrade
|
flutter upgrade
|
||||||
flutter config --enable-native-assets
|
flutter config --enable-native-assets
|
||||||
```
|
```
|
||||||
|
|
||||||
|
In your Flutter app:
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
_thermionViewer = await ThermionFlutterPlugin.createViewer();
|
_thermionViewer = await ThermionFlutterPlugin.createViewer();
|
||||||
|
|
||||||
@@ -61,8 +65,8 @@ await _thermionViewer!.loadIbl("assets/default_env_ibl.ktx");
|
|||||||
await _thermionViewer!.setRendering(true);
|
await _thermionViewer!.setRendering(true);
|
||||||
```
|
```
|
||||||
|
|
||||||
and then in your Flutter application:
|
and then in your widget tree:
|
||||||
```
|
```dart
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Stack(children: [
|
return Stack(children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user