TaroWidget class
TaroWidget is a widget for loading images. It uses two loaders: Storage and Network. Images that have been loaded once are cached in ImageCache.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- TaroWidget
Constructors
-
TaroWidget.new({Key? key, required String url, Map<
String, String> headers = const {}, TaroResizeOption? resizeOption, TaroHeaderOption? headerOption, double scale = 1.0, TaroErrorBuilder? errorBuilder, TaroPlaceholderBuilder? placeholder, String? semanticLabel, bool excludeFromSemantics = false, double? width, double? height, Color? color, Animation<double> ? opacity, BlendMode? colorBlendMode, BoxFit? fit, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, Rect? centerSlice, bool matchTextDirection = false, bool gaplessPlayback = false, bool isAntiAlias = false, FilterQuality filterQuality = FilterQuality.low}) -
Creates a widget that displays an image from a
TaroImageProvider
.const
Properties
- alignment → AlignmentGeometry
-
see Image.alignment
final
- centerSlice → Rect?
-
see Image.centerSlice
final
- color → Color?
-
see Image.color
final
- colorBlendMode → BlendMode?
-
see Image.colorBlendMode
final
- errorBuilder → TaroErrorBuilder?
-
A builder that creates a widget when an error occurs while loading the data.
final
- excludeFromSemantics → bool
-
see Image.excludeFromSemantics
final
- filterQuality → FilterQuality
-
see Image.filterQuality
final
- fit → BoxFit?
-
see Image.fit
final
- gaplessPlayback → bool
-
see Image.gaplessPlayback
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerOption → TaroHeaderOption?
-
The header option used to handle response header.
final
-
headers
→ Map<
String, String> -
A map of request headers to send with the GET request.
final
- height → double?
-
see Image.height
final
- isAntiAlias → bool
-
see Image.isAntiAlias
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- matchTextDirection → bool
-
see Image.matchTextDirection
final
-
opacity
→ Animation<
double> ? -
see Image.opacity
final
- placeholder → TaroPlaceholderBuilder?
-
A builder that creates a placeholder widget while the data is loading.
final
- repeat → ImageRepeat
-
see Image.repeat
final
- resizeOption → TaroResizeOption?
-
The resize option used to resize the image.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
The scale to place in the ImageInfo object of the image.
final
- semanticLabel → String?
-
see Image.semanticLabel
final
- url → String
-
The URL from which the widget loads data.
final
- width → double?
-
see Image.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, 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