ArcGISSceneView class final
A widget that displays an ArcGISScene and associated data.
The ArcGISSceneView
widget can only be used within a widget that has a bounded size.
Using it with unbounded size will cause the application to throw an exception.
For example, to use an ArcGISSceneView
within an unbounded size widget, such as
a Column, Row, ListView, SingleChildScrollView, or Stack, etc.,
you must first wrap the ArcGISSceneView
in a bounded widget, such as Expanded, to
provide it with proper bounds.
Here is a simple example:
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
Expanded(
child: ArcGISSceneView(
controllerProvider: () {
return ArcGISSceneView.createController()
..arcGISScene = ArcGISScene.withBasemapStyle(
BasemapStyle.arcGISImagery,
);
},
),
),
],
),
);
}
Use the associated ArcGISSceneViewController to configure the scene and other data, such as GeoModel.operationalLayers, GeoViewController.graphicsOverlays or ArcGISSceneViewController.sunTime.
Use the controller to interact with the scene, such as by using GeoViewController.setViewpoint or GeoViewController.identifyLayer.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ArcGISSceneView
Constructors
- ArcGISSceneView.new({required ArcGISSceneViewController controllerProvider(), void onSceneViewReady()?, void onTap(Offset localPosition)?, void onLongPressEnd(Offset localPosition)?, Key? key})
-
Creates an ArcGIS scene view.
const
Properties
- controllerProvider → ArcGISSceneViewController Function()
-
Called when this ArcGISSceneView needs an ArcGISSceneViewController to associate with itself.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onLongPressEnd → void Function(Offset localPosition)?
-
Called when the user completes a long press gesture on the scene view.
final
- onSceneViewReady → void Function()?
-
Called when the scene view is ready to be used.
final
- onTap → void Function(Offset localPosition)?
-
Called when the user taps on the scene view.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ArcGISSceneView> -
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
Static Methods
-
createController(
) → ArcGISSceneViewController - Creates an ArcGISSceneViewController for use with an ArcGISSceneView.