ReloadablePhotoView class
A reloadable PhotoView
, which uses given ValueKey for ImageProvider (such as LocalOrCachedNetworkImageProvider),
to reload it, through ReloadablePhotoViewState.reload method.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ReloadablePhotoView
Constructors
-
ReloadablePhotoView({Key? key, required ImageProviderBuilder imageProviderBuilder, dynamic initialScale, dynamic minScale, dynamic maxScale, BoxDecoration? backgroundDecoration, FilterQuality? filterQuality, PhotoViewImageTapDownCallback? onTapDown, PhotoViewImageTapUpCallback? onTapUp, LoadingPlaceholderBuilder? loadingBuilder, ErrorPlaceholderBuilder? errorBuilder, Alignment? basePosition, PhotoViewControllerBase<
PhotoViewControllerValue> ? controller, Size? customSize, bool? disableGestures, bool? enablePanAlways, bool? enableRotation, bool? gaplessPlayback, HitTestBehavior? gestureDetectorBehavior, PhotoViewHeroAttributes? heroAttributes, PhotoViewImageScaleEndCallback? onScaleEnd, PhotoViewScaleStateController? scaleStateController, ValueChanged<PhotoViewScaleState> ? scaleStateChangedCallback, ScaleStateCycle? scaleStateCycle, bool? tightMode, bool? wantKeepAlive}) -
Constructs a ReloadablePhotoView with non-null imageProviderBuilder.
const
Properties
- backgroundDecoration → BoxDecoration?
-
Mirrors to
PhotoView.backgroundDecoration
, defaults toBoxDecoration(color: Colors.black)
.final - basePosition → Alignment?
-
Mirrors to
PhotoView.basePosition
, defaults to Alignment.center.final -
controller
→ PhotoViewControllerBase<
PhotoViewControllerValue> ? -
Mirrors to
PhotoView.controller
.final - customSize → Size?
-
Mirrors to
PhotoView.customSize
.final - disableGestures → bool?
-
Mirrors to
PhotoView.disableGestures
, defaults to false.final - enablePanAlways → bool?
-
Mirrors to
PhotoView.enablePanAlways
, defaults to false.final - enableRotation → bool?
-
Mirrors to
PhotoView.enableRotation
, defaults to false.final - errorBuilder → ErrorPlaceholderBuilder?
-
Mirrors to
PhotoView.errorBuilder
, defaults to usePhotoViewDefaultError
, which only contains an Icons.broken_image icon.final - filterQuality → FilterQuality?
-
Mirrors to
PhotoView.filterQuality
, defaults to FilterQuality.none.final - gaplessPlayback → bool?
-
Mirrors to
PhotoView.gaplessPlayback
, defaults to false.final - gestureDetectorBehavior → HitTestBehavior?
-
Mirrors to
PhotoView.gestureDetectorBehavior
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- heroAttributes → PhotoViewHeroAttributes?
-
Mirrors to
PhotoView.heroAttributes
.final - imageProviderBuilder → ImageProviderBuilder
-
The ImageProvider builder with ValueKey, which can be used to reload it.
final
- initialScale → dynamic
-
Mirrors to
PhotoView.initialScale
, defaults toPhotoViewComputedScale.contained
.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingBuilder → LoadingPlaceholderBuilder?
-
Mirrors to
PhotoView.loadingBuilder
, defaults to usePhotoViewDefaultLoading
, which only contains a CircularProgressIndicator.final - maxScale → dynamic
-
Mirrors to
PhotoView.maxScale
, defaults to double.infinity.final - minScale → dynamic
-
Mirrors to
PhotoView.minScale
, defaults to 0.0.final - onScaleEnd → PhotoViewImageScaleEndCallback?
-
Mirrors to
PhotoView.onScaleEnd
.final - onTapDown → PhotoViewImageTapDownCallback?
-
Mirrors to
PhotoView.onTapDown
.final - onTapUp → PhotoViewImageTapUpCallback?
-
Mirrors to
PhotoView.onTapUp
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaleStateChangedCallback
→ ValueChanged<
PhotoViewScaleState> ? -
Mirrors to
PhotoView.scaleStateChangedCallback
.final - scaleStateController → PhotoViewScaleStateController?
-
Mirrors to
PhotoView.scaleStateController
.final - scaleStateCycle → ScaleStateCycle?
-
Mirrors to
PhotoView.scaleStateCycle
, defaults todefaultScaleStateCycle
.final - tightMode → bool?
-
Mirrors to
PhotoView.tightMode
, defaults to false.final - wantKeepAlive → bool?
-
Mirrors to
PhotoView.wantKeepAlive
, defaults to false.final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ReloadablePhotoView> -
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}) → 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