ReadyImage class
Wrapper around cashed network image
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ReadyImage
Constructors
-
ReadyImage({Key? key, required String path, double? width, double? height, Map<
String, String> ? queryParameters, Uri resolveUrl(BuildContext context, String path)?, Color? color, ImageRenderMethodForWeb? imageRenderMethodForWeb, LoadingErrorWidgetBuilder? errorPlaceholder, ProgressIndicatorBuilder? loadingPlaceholder, Decoration? foregroundDecoration, Decoration? decoration, Decoration? outerDecoration, EdgeInsetsGeometry? outerPadding, EdgeInsetsGeometry? innerPadding, BoxFit? fit, HeadersCallBack? headers, BaseCacheManager? cacheManager}) -
const
-
ReadyImage.custom({Key? key, required Widget builder(ReadyImageDefaults config, Widget image), String? path, double? width, double? height, Map<
String, String> ? queryParameters, Uri resolveUrl(BuildContext context, String path)?, ImageRenderMethodForWeb? imageRenderMethodForWeb, LoadingErrorWidgetBuilder? errorPlaceholder, ProgressIndicatorBuilder? loadingPlaceholder, Decoration? foregroundDecoration, Decoration? decoration, Decoration? outerDecoration, EdgeInsetsGeometry? outerPadding, EdgeInsetsGeometry? innerPadding, BoxFit? fit, HeadersCallBack? headers, BaseCacheManager? cacheManager}) -
in case of you need local image with respect of global decorations
const
Properties
- cacheManager → BaseCacheManager?
-
The image cache manager
final
- color → Color?
-
color to be applied to the image
final
- decoration → Decoration?
-
the decoration behind the image
final
- errorPlaceholder → LoadingErrorWidgetBuilder?
-
the error widget
final
- fit → BoxFit?
-
image Box fit
final
- foregroundDecoration → Decoration?
-
the decoration above the image
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → HeadersCallBack?
-
url headers
final
- height → double?
-
image height
final
- imageRenderMethodForWeb → ImageRenderMethodForWeb?
-
how image will be fetched in web platform
final
- innerPadding → EdgeInsetsGeometry?
-
the padding between the decoration and the image
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingPlaceholder → ProgressIndicatorBuilder?
-
the loading pace holder
final
- outerDecoration → Decoration?
-
the decoration behind the image and its decoration
final
- outerPadding → EdgeInsetsGeometry?
-
the padding between the inner and outer decoration
final
- path → String
-
the path or the url of the image
final
-
queryParameters
→ Map<
String, String> ? -
parameter to be added to the url
final
- resolveUrl → Uri Function(BuildContext context, String path)?
-
override the global url resolver
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
image width
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
config(
BuildContext context) → ReadyImageDefaults -
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