ImageArea class
Widget displaying an image with drag-and-drop support and various states. Uses an ImageController to manage image data and UI state.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ImageArea
Constructors
- ImageArea.new({ImageController? controller, required double width, required double height, String? onLoadingImage, BoxDecoration? decoration, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Widget? emptyChild, Widget? onErrorChild, Widget? onDragChild, Widget? onLoadingChild, BoxFit? fit, Key? key})
-
Constructs an ImageArea with specified width and height.
const
- ImageArea.expand({ImageController? controller, String? onLoadingImage, BoxDecoration? decoration, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Widget? emptyChild, Widget? onErrorChild, Widget? onDragChild, Widget? onLoadingChild, BoxFit? fit, Key? key})
- Constructs an ImageArea that expands to fill available space.
- ImageArea.square({ImageController? controller, required double dimension, String? onLoadingImage, BoxDecoration? decoration, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Widget? emptyChild, Widget? onErrorChild, Widget? onDragChild, Widget? onLoadingChild, BoxFit? fit, Key? key})
-
Constructs a square ImageArea with equal width and height
dimension
.
Properties
- controller → ImageController?
-
Controller managing image state and data.
final
- decoration → BoxDecoration?
-
Decoration applied to the container.
final
- emptyChild → Widget?
-
Widget displayed when no image is loaded.
final
- fit → BoxFit?
-
How the image should fit within the container.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height of the container.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry?
-
Margin around the container.
final
- onDragChild → Widget?
-
Widget displayed when a drag operation is active.
final
- onErrorChild → Widget?
-
Widget displayed when an error occurs.
final
- onLoadingChild → Widget?
-
Widget displayed while loading.
final
- onLoadingImage → String?
-
Optional URL or path to an image to load on initialization.
final
- padding → EdgeInsetsGeometry?
-
Padding inside the container.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
Width of the container.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ImageArea> -
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