LocalOrCachedNetworkImage class
An image widget that uses OctoImage
to show LocalOrCachedNetworkImageProvider image,
which is almost the same as CachedNetworkImage
.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LocalOrCachedNetworkImage
Constructors
-
LocalOrCachedNetworkImage({Key? key, required LocalOrCachedNetworkImageProvider provider, Widget imageBuilder(BuildContext context, ImageProvider<
Object> imageProvider)?, OctoPlaceholderBuilder? placeholderBuilder, OctoProgressIndicatorBuilder? progressIndicatorBuilder, OctoErrorBuilder? errorBuilder, Duration? fadeOutDuration = const Duration(milliseconds: 1000), Curve? fadeOutCurve = Curves.easeOut, Duration? fadeInDuration = const Duration(milliseconds: 500), Curve? fadeInCurve = Curves.easeIn, double? width, double? height, BoxFit? fit, Alignment? alignment = Alignment.center, ImageRepeat? repeat = ImageRepeat.noRepeat, bool? matchTextDirection = false, Color? color, FilterQuality? filterQuality = FilterQuality.low, BlendMode? colorBlendMode, Duration? placeholderFadeInDuration = Duration.zero, bool? gaplessPlayback = false, int? memCacheWidth, int? memCacheHeight}) -
Constructs a LocalOrCachedNetworkImage by given LocalOrCachedNetworkImageProvider and
other parameters.
const
Properties
- alignment → Alignment?
-
Mirrors to
OctoImage.alignment
.final - color → Color?
-
Mirrors to
OctoImage.color
.final - colorBlendMode → BlendMode?
-
Mirrors to
OctoImage.colorBlendMode
.final - errorBuilder → OctoErrorBuilder?
-
Mirrors to
OctoImage.errorBuilder
.final - fadeInCurve → Curve?
-
Mirrors to
OctoImage.fadeInCurve
.final - fadeInDuration → Duration?
-
Mirrors to
OctoImage.fadeInDuration
.final - fadeOutCurve → Curve?
-
Mirrors to
OctoImage.fadeOutCurve
.final - fadeOutDuration → Duration?
-
Mirrors to
OctoImage.fadeOutDuration
.final - filterQuality → FilterQuality?
-
Mirrors to
OctoImage.filterQuality
.final - fit → BoxFit?
-
Mirrors to
OctoImage.fit
.final - gaplessPlayback → bool?
-
Mirrors to
OctoImage.gaplessPlayback
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Mirrors to
OctoImage.height
.final -
imageBuilder
→ (Widget Function(BuildContext context, ImageProvider<
Object> imageProvider)?) -
Mirrors to
OctoImage.imageBuilder
.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- matchTextDirection → bool?
-
Mirrors to
OctoImage.matchTextDirection
.final - memCacheHeight → int?
-
Mirrors to
OctoImage.memCacheHeight
.final - memCacheWidth → int?
-
Mirrors to
OctoImage.memCacheWidth
.final - placeholderBuilder → OctoPlaceholderBuilder?
-
Mirrors to
OctoImage.placeholderBuilder
.final - placeholderFadeInDuration → Duration?
-
Mirrors to
OctoImage.placeholderFadeInDuration
.final - progressIndicatorBuilder → OctoProgressIndicatorBuilder?
-
Mirrors to
OctoImage.progressIndicatorBuilder
.final - provider → LocalOrCachedNetworkImageProvider
-
The ImageProvider used by
OctoImage
.final - repeat → ImageRepeat?
-
Mirrors to
OctoImage.repeat
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
Mirrors to
OctoImage.width
.final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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