Skip to content

Commit 39e851d

Browse files
committed
v1.3.1--Fix available animations and textures issue in iOS
1 parent 10aea9e commit 39e851d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ A Flutter package for rendering interactive 3D models in different formats(glb,
55
## Features
66

77
- Mobile and Web stable version (support glb & gltf format)
8+
- Load 3D model from assets
9+
- Load 3D model from URL
810
- Play animation
911
- Switch between animations
1012
- Pause animation
@@ -20,10 +22,7 @@ A Flutter package for rendering interactive 3D models in different formats(glb,
2022

2123
<!--
2224
## Todo (Next Versions)
23-
2425
- Change model source with setState
25-
- Load models from local storage
26-
- Load models from web
2726
- Support obj and fbx format
2827
-->
2928

@@ -93,8 +92,9 @@ Flutter3DViewer(
9392
//You can set your custom color or use [Colors.transparent] for hiding the loadingProgressBar.
9493
progressBarColor: Colors.blue,
9594
controller: controller,
96-
src: 'assets/business_man.glb',
97-
//src: 'assets/sheen_chair.glb',
95+
src: 'assets/business_man.glb', //3D model with different animations
96+
//src: 'assets/sheen_chair.glb', //3D model with different textures
97+
//src: 'https://modelviewer.dev/shared-assets/models/Astronaut.glb', //3D model from URL
9898
)
9999
```
100100

example/lib/main.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class MyApp extends StatelessWidget {
2323

2424
class MyHomePage extends StatefulWidget {
2525
const MyHomePage({super.key, required this.title});
26+
2627
final String title;
2728

2829
@override
@@ -130,8 +131,9 @@ class _MyHomePageState extends State<MyHomePage> {
130131
//You can set your custom color or use [Colors.transparent] for hiding loadingProgressBar.
131132
progressBarColor: Colors.blue,
132133
controller: controller,
133-
src: 'assets/business_man.glb',
134-
//src: 'assets/sheen_chair.glb',
134+
src: 'assets/business_man.glb', //3D model with different animations
135+
//src: 'assets/sheen_chair.glb', //3D model with different textures
136+
//src: 'https://modelviewer.dev/shared-assets/models/Astronaut.glb', // 3D model from URL
135137
),
136138
),
137139
);

0 commit comments

Comments
 (0)