Flutter3DViewer class
Constructors
Flutter3DViewer.new ({Key ? key , required String src , Flutter3DController ? controller , Color ? progressBarColor , bool activeGestureInterceptor = true , bool enableTouch = true , dynamic onProgress (double progressValue )?, dynamic onLoad (String modelAddress )?, dynamic onError (String error )? })
const
Flutter3DViewer.obj ({Key ? key , required String src , double ? scale , double ? cameraX , double ? cameraY , double ? cameraZ , dynamic onProgress (double progressValue )?, dynamic onLoad (String modelAddress )?, dynamic onError (String error )? })
const
Properties
activeGestureInterceptor
→ bool
If true the flutter_3d_controller will add gesture interceptor layer
to prevent breaking gesture recognizer functionality in iOS and some of
android devices. default = true.
final
cameraX
→ double ?
obj model initial camera values
final
cameraY
→ double ?
obj model initial camera values
final
cameraZ
→ double ?
obj model initial camera values
final
controller
→ Flutter3DController ?
This controller will provide full control of 3d model animations, camera,
variants, etc.
final
enableTouch
→ bool
If set to false, the model cannot be controlled by touch,
the default value is true.
final
hashCode
→ int
The hash code for this object.
no setter inherited
isObj
→ bool
Flag to indicate if the .obj constructor was used.
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
onError
→ dynamic Function(String error ) ?
This callBack will call when model failed to load
and will return string error
final
onLoad
→ dynamic Function(String modelAddress ) ?
This callBack will call when model loaded successfully
and will return string model address
final
onProgress
→ dynamic Function(double progressValue ) ?
This callBack will call at every step of loading progress
and will return double progress value between 0 and 1.0
final
progressBarColor
→ Color ?
Default progressBar color, use Colors.transparent to hide progress bar.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
scale
→ double ?
obj model initial camera values
final
src
→ String
Src address of 3d model, could be asset address, url or file address.
final
flutter_3d_controller 2.2.0