Skip to content

Commit

Permalink
fix change log
Browse files Browse the repository at this point in the history
  • Loading branch information
Faraz authored and Faraz committed Oct 2, 2024
1 parent 126b433 commit 87f4bb5
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter_wkwebview","path":"/Users/faraz/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.14.0/","native_build":true,"dependencies":[]}],"android":[{"name":"webview_flutter_android","path":"/Users/faraz/.pub-cache/hosted/pub.dev/webview_flutter_android-3.16.7/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2024-10-01 02:19:36.309235","version":"3.22.3"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter_wkwebview","path":"/Users/faraz/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.14.0/","native_build":true,"dependencies":[]}],"android":[{"name":"webview_flutter_android","path":"/Users/faraz/.pub-cache/hosted/pub.dev/webview_flutter_android-3.16.7/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2024-10-02 17:31:44.018509","version":"3.22.3"}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## v2.0.0

### Features
* Gesture interceptor feature for android and iOS
* Load .obj 3d models with mtl and textures from asset and url
* Initial scale and camera properties for .obj models
* Model loading states callbacks, onProgress, onLoad and onError
* Stop animation method
* Enable/disable touch control properties

### Fixes
* Fix some small bugs
* Fix example
* Update dependencies


## v1.3.1

### Fixes
Expand Down
54 changes: 27 additions & 27 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,33 +137,33 @@ class _MyHomePageState extends State<MyHomePage> {
height: MediaQuery.of(context).size.height,
child: Column(
children: [
// Flexible(
// flex: 1,
// child: Flutter3DViewer.obj(
// src: 'assets/flutter_dash.obj',
// //src: 'https://raw.githubusercontent.com/m-r-davari/content-holder/refs/heads/master/flutter_3d_controller/flutter_dash_model/flutter_dash.obj',
// scale: 5,
// // Initial scale of obj model
// cameraX: 0,
// // Initial cameraX position of obj model
// cameraY: 0,
// //Initial cameraY position of obj model
// cameraZ: 10,
// //Initial cameraZ position of obj model
// //This callBack will return the loading progress value between 0 and 1.0
// onProgress: (double progressValue) {
// debugPrint('model loading progress : $progressValue');
// },
// //This callBack will call after model loaded successfully and will return model address
// onLoad: (String modelAddress) {
// debugPrint('model loaded : $modelAddress');
// },
// //this callBack will call when model failed to load and will return failure erro
// onError: (String error) {
// debugPrint('model failed to load : $error');
// },
// ),
// ),
Flexible(
flex: 1,
child: Flutter3DViewer.obj(
src: 'assets/flutter_dash.obj',
//src: 'https://raw.githubusercontent.com/m-r-davari/content-holder/refs/heads/master/flutter_3d_controller/flutter_dash_model/flutter_dash.obj',
scale: 5,
// Initial scale of obj model
cameraX: 0,
// Initial cameraX position of obj model
cameraY: 0,
//Initial cameraY position of obj model
cameraZ: 10,
//Initial cameraZ position of obj model
//This callBack will return the loading progress value between 0 and 1.0
onProgress: (double progressValue) {
debugPrint('model loading progress : $progressValue');
},
//This callBack will call after model loaded successfully and will return model address
onLoad: (String modelAddress) {
debugPrint('model loaded : $modelAddress');
},
//this callBack will call when model failed to load and will return failure erro
onError: (String error) {
debugPrint('model failed to load : $error');
},
),
),
Flexible(
flex: 1,
child: Flutter3DViewer(
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.3.1"
version: "2.0.0"
flutter_lints:
dependency: "direct dev"
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.1.0+11
version: 2.0.0+20

environment:
sdk: '>=3.0.6 <4.0.0'
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_3d_controller
description: A Flutter package for rendering interactive 3D models in different formats(glb, gltf, fbx, obj), with ability to control animations, textures and camera.
version: 1.3.1
description: A Flutter package for rendering interactive 3D models in different formats(glb, gltf, obj, fbx), with ability to control animations, textures and camera.
version: 2.0.0
homepage: https://github.com/m-r-davari/flutter_3d_controller

topics:
Expand Down

0 comments on commit 87f4bb5

Please sign in to comment.