A flutter package to render wavefront obj files on a canvas.
To use this package, add flutter_3d_obj to your pubspec.yaml file. Then import the package to use it.
Example Usage #
The following example basic usage of package.
... child: new Object3D(size:'/size of canvas/', path:'/path of file/', asset: true'/set true to load file from assets/'), ...
If SD-card path provided, ensure SD-card permissions are available.
To run the example.
* git clone https://github.com/hemanthrajv/flutter_3d_obj.git * cd /path to cloned dir/ * cd example * flutter run
Built With #
- Flutter - A framework for building crossplatform mobile applications with native look and feel.
Hemanth Raj StackOverflow
Getting Started #
For help getting started with Flutter, view online documentation.
[0.0.6] - Fixed Example
[0.0.5] - Breaking Change
- changed the class name from
[0.0.4] - Dart 2 support
[0.0.3] - Added Example
[0.0.2] - Updated to provide zoom, angleX, angleY and angleZ args.
[0.0.1] - TODO: Add release date.
- Initial Relese
A new Flutter project.
Getting Started #
For help getting started with Flutter, view our online documentation.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: flutter_3d_obj: ^0.0.6
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jan 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.0
- pana: 0.13.4
- Flutter: 1.12.13+hotfix.5
lib/flutter_3d_obj.dart. (-1 points)
lib/flutter_3d_obj.dart reported 2 hints:
line 133 col 10: The value of the field '_translation' isn't used.
line 293 col 9: The value of the local variable 'z' isn't used.
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.