Flutter3DViewer class

Inheritance

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 setterinherited
isObj bool
Flag to indicate if the .obj constructor was used.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
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 setterinherited
scale double?
obj model initial camera values
final
src String
Src address of 3d model, could be asset address, url or file address.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<Flutter3DViewer>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited