Skip to content

Commit

Permalink
v1.3.1--Fix available animations and textures issue in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
m-r-davari committed May 27, 2024
1 parent 10aea9e commit 39e851d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ A Flutter package for rendering interactive 3D models in different formats(glb,
## Features

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

<!--
## Todo (Next Versions)
- Change model source with setState
- Load models from local storage
- Load models from web
- Support obj and fbx format
-->

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

Expand Down
6 changes: 4 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class MyApp extends StatelessWidget {

class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});

final String title;

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

0 comments on commit 39e851d

Please sign in to comment.