BZImage class

Inheritance
Available extensions

Constructors

BZImage({Key? key, required String? imageUrl, PlaceholderWidgetBuilder? placeholder, LoadingErrorWidgetBuilder? errorWidget, double? width, double? height, BoxFit fit = BoxFit.cover, Alignment alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, Map<String, String>? httpHeaders, BaseCacheManager? cacheManager, String? cacheKey, Duration fadeInDuration = const Duration(milliseconds: 300), Curve fadeInCurve = Curves.easeIn, Duration fadeOutDuration = const Duration(milliseconds: 1000), Curve fadeOutCurve = Curves.easeOut, bool useOldImageOnUrlChange = false, bool matchTextDirection = false, bool isCircular = false, BorderRadius? borderRadius, BoxBorder? border})
BZImage.fromAsset(String? assetName, {Key? key, double? width, double? height, PlaceholderWidgetBuilder? placeholder, LoadingErrorWidgetBuilder? errorWidget, BoxFit fit = BoxFit.fill, Alignment alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, String? cacheKey, Duration fadeInDuration = const Duration(milliseconds: 300), Curve fadeInCurve = Curves.easeIn, Duration fadeOutDuration = const Duration(milliseconds: 1000), Curve fadeOutCurve = Curves.easeOut, bool useOldImageOnUrlChange = false, bool matchTextDirection = false, bool isCircular = false, BorderRadius? borderRadius, BoxBorder? border})
BZImage.fromBase64(String? base64Info, {Key? key, double? width, double? height, PlaceholderWidgetBuilder? placeholder, LoadingErrorWidgetBuilder? errorWidget, BoxFit fit = BoxFit.cover, Alignment alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, String? cacheKey, Duration fadeInDuration = const Duration(milliseconds: 300), Curve fadeInCurve = Curves.easeIn, Duration fadeOutDuration = const Duration(milliseconds: 1000), Curve fadeOutCurve = Curves.easeOut, bool useOldImageOnUrlChange = false, bool matchTextDirection = false, bool isCircular = false, BorderRadius? borderRadius, BoxBorder? border})
BZImage.fromFile(String? filePath, {Key? key, double? width, double? height, PlaceholderWidgetBuilder? placeholder, LoadingErrorWidgetBuilder? errorWidget, BoxFit fit = BoxFit.fill, Alignment alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, String? cacheKey, Duration fadeInDuration = const Duration(milliseconds: 300), Curve fadeInCurve = Curves.easeIn, Duration fadeOutDuration = const Duration(milliseconds: 1000), Curve fadeOutCurve = Curves.easeOut, bool useOldImageOnUrlChange = false, bool matchTextDirection = false, bool isCircular = false, BorderRadius? borderRadius, BoxBorder? border})

Properties

alignment Alignment
How to align the image within its bounds.
finalinherited
border BoxBorder?
final
borderRadius BorderRadius?
final
cacheKey String?
The target image's cache key.
finalinherited
cacheManager → BaseCacheManager?
Option to use cachemanager with other settings
finalinherited
color Color?
If non-null, this color is blended with each image pixel using colorBlendMode.
finalinherited
colorBlendMode BlendMode?
Used to combine color with this image.
finalinherited
errorWidget → LoadingErrorWidgetBuilder?
Widget displayed while the target imageUrl failed loading.
finalinherited
fadeInCurve Curve
The curve of the fade-in animation for the imageUrl.
finalinherited
fadeInDuration Duration
The duration of the fade-in animation for the imageUrl.
finalinherited
fadeOutCurve Curve
The curve of the fade-out animation for the placeholder.
finalinherited
fadeOutDuration Duration?
The duration of the fade-out animation for the placeholder.
finalinherited
filterQuality FilterQuality
Target the interpolation quality for image scaling.
finalinherited
fit BoxFit?
How to inscribe the image into the space allocated during layout.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
If non-null, require the image to have this height.
finalinherited
httpHeaders Map<String, String>?
Optional headers for the http request of the image url
finalinherited
imageBuilder → ImageWidgetBuilder?
Optional builder to further customize the display of the image.
finalinherited
imageUrl String
The target image that is displayed.
finalinherited
isCircular bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
matchTextDirection bool
Whether to paint the image in the direction of the TextDirection.
finalinherited
maxHeightDiskCache int?
Will resize the image and store the resized image in the disk cache.
finalinherited
maxWidthDiskCache int?
Will resize the image and store the resized image in the disk cache.
finalinherited
memCacheHeight int?
Will resize the image in memory to have a certain height using ResizeImage
finalinherited
memCacheWidth int?
Will resize the image in memory to have a certain width using ResizeImage
finalinherited
placeholder → PlaceholderWidgetBuilder?
Widget displayed while the target imageUrl is loading.
finalinherited
placeholderFadeInDuration Duration?
The duration of the fade-in animation for the placeholder.
finalinherited
progressIndicatorBuilder → ProgressIndicatorBuilder?
Widget displayed while the target imageUrl is loading.
finalinherited
repeat ImageRepeat
How to paint any portions of the layout bounds not covered by the image.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useOldImageOnUrlChange bool
When set to true it will animate from the old image to the new image if the url changes.
finalinherited
width double?
If non-null, require the image to have this width.
finalinherited

Methods

addGestureDetector({Key? key, GestureTapDownCallback? onTapDown, GestureTapUpCallback? onTapUp, GestureTapCallback? onTap, GestureTapCancelCallback? onTapCancel, GestureTapDownCallback? onSecondaryTapDown, GestureTapUpCallback? onSecondaryTapUp, GestureTapCancelCallback? onSecondaryTapCancel, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, GestureLongPressStartCallback? onLongPressStart, GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate, GestureLongPressUpCallback? onLongPressUp, GestureLongPressEndCallback? onLongPressEnd, GestureDragDownCallback? onVerticalDragDown, GestureDragStartCallback? onVerticalDragStart, GestureDragUpdateCallback? onVerticalDragUpdate, GestureDragEndCallback? onVerticalDragEnd, GestureDragCancelCallback? onVerticalDragCancel, GestureDragDownCallback? onHorizontalDragDown, GestureDragStartCallback? onHorizontalDragStart, GestureDragUpdateCallback? onHorizontalDragUpdate, GestureDragEndCallback? onHorizontalDragEnd, GestureDragCancelCallback? onHorizontalDragCancel, GestureForcePressStartCallback? onForcePressStart, GestureForcePressPeakCallback? onForcePressPeak, GestureForcePressUpdateCallback? onForcePressUpdate, GestureForcePressEndCallback? onForcePressEnd, GestureDragDownCallback? onPanDown, GestureDragStartCallback? onPanStart, GestureDragUpdateCallback? onPanUpdate, GestureDragEndCallback? onPanEnd, GestureDragCancelCallback? onPanCancel, GestureScaleStartCallback? onScaleStart, GestureScaleUpdateCallback? onScaleUpdate, GestureScaleEndCallback? onScaleEnd, HitTestBehavior? behavior, bool excludeFromSemantics = false, DragStartBehavior dragStartBehavior = DragStartBehavior.start}) GestureDetector

Available on Widget, provided by the BZWidgetLayoutEventPower extension

addNeighbor(Widget widget) List<Widget>

Available on Widget, provided by the WidgetLayoutPower extension

align({Key? key, Alignment alignment = Alignment.center, double? widthFactor, double? heightFactor}) Align

Available on Widget, provided by the WidgetLayoutPower extension

animatedAlign({Key? key, Alignment alignment = Alignment.center, Curve curve = Curves.linear, required Duration duration, VoidCallback? onEnd}) AnimatedAlign

Available on Widget, provided by the BZWidgetAnimatedLayoutEventPower extension

animatedContainer({Key? key, Alignment? alignment, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, BoxConstraints? constraints, EdgeInsetsGeometry? margin, Matrix4? transform, Curve curve = Curves.linear, required Duration duration, VoidCallback? onEnd}) AnimatedContainer

Available on Widget, provided by the BZWidgetAnimatedLayoutEventPower extension

animatedPadding({Key? key, required EdgeInsetsGeometry padding, Curve curve = Curves.linear, required Duration duration, VoidCallback? onEnd}) AnimatedPadding

Available on Widget, provided by the BZWidgetAnimatedLayoutEventPower extension

asList() List<Widget>

Available on Widget, provided by the WidgetLayoutPower extension

borderRadius({Key? key, required BorderRadiusGeometry? borderRadius}) DecoratedBox

Available on Widget, provided by the WidgetLayoutPower extension

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
card({Key? key, Color? color, Color? shadowColor, Color? surfaceTintColor, double? elevation, ShapeBorder? shape, bool borderOnForeground = true, EdgeInsetsGeometry? margin, Clip? clipBehavior, bool semanticContainer = true}) Card

Available on Widget, provided by the WidgetLayoutPower extension

center({Key? key, double? widthFactor, double? heightFactor}) Center

Available on Widget, provided by the WidgetLayoutPower extension

clipOval({Key? key, BorderRadius borderRadius = BorderRadius.zero, CustomClipper<Rect>? clipper, Clip clipBehavior = Clip.antiAlias}) ClipOval

Available on Widget, provided by the WidgetLayoutPower extension

clipPath({Key? key, BorderRadius borderRadius = BorderRadius.zero, CustomClipper<Path>? clipper, Clip clipBehavior = Clip.antiAlias}) ClipPath

Available on Widget, provided by the WidgetLayoutPower extension

clipRRect({Key? key, BorderRadius borderRadius = BorderRadius.zero, CustomClipper<RRect>? clipper, Clip clipBehavior = Clip.antiAlias}) ClipRRect

Available on Widget, provided by the WidgetLayoutPower extension

constrainedBox({Key? key, required BoxConstraints constraints}) ConstrainedBox

Available on Widget, provided by the BZWidgetBoxLayoutEventPower extension

container({Key? key, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, BoxConstraints? constraints, EdgeInsetsGeometry? margin, Matrix4? transform, Clip clipBehavior = Clip.none}) Container

Available on Widget, provided by the WidgetLayoutPower extension

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
decoratedBox({Key? key, required Decoration decoration, DecorationPosition position = DecorationPosition.background}) DecoratedBox

Available on Widget, provided by the BZWidgetBoxLayoutEventPower extension

errorWidgetBuild(BuildContext context, dynamic error) Widget
expanded({Key? key, int flex = 1}) Expanded

Available on Widget, provided by the WidgetLayoutPower extension

fittedBox({Key? key, BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.center}) FittedBox

Available on Widget, provided by the BZWidgetBoxLayoutEventPower extension

flatButton({Key? key, required VoidCallback onPressed, VoidCallback? onLongPress, ValueChanged<bool>? onHighlightChanged, ButtonTextTheme? textTheme, Color? textColor, Color? disabledTextColor, Color? color, Color? disabledColor, Color? focusColor, Color? hoverColor, Color? highlightColor, Color? splashColor, Brightness? colorBrightness, EdgeInsetsGeometry? padding = const EdgeInsets.all(0), ShapeBorder? shape, Clip clipBehavior = Clip.none, FocusNode? focusNode, bool autofocus = false, MaterialTapTargetSize? materialTapTargetSize}) FloatingActionButton

Available on Widget, provided by the WidgetLayoutPower extension

flexible({Key? key, int flex = 1, FlexFit fit = FlexFit.loose}) Flexible

Available on Widget, provided by the WidgetLayoutPower extension

limitedBox({Key? key, double maxWidth = double.infinity, double maxHeight = double.infinity}) LimitedBox

Available on Widget, provided by the BZWidgetBoxLayoutEventPower extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offstage({Key? key, bool offstage = true}) Offstage

Available on Widget, provided by the WidgetLayoutPower extension

onDoubleTap(GestureTapCallback onDoubleTap, {Key? key}) GestureDetector

Available on Widget, provided by the BZWidgetLayoutEventPower extension

onLongPress(GestureLongPressCallback onLongPress, {Key? key}) GestureDetector

Available on Widget, provided by the BZWidgetLayoutEventPower extension

onTap(GestureTapCallback onTap, {Key? key}) GestureDetector

Available on Widget, provided by the BZWidgetLayoutEventPower extension

opacity({Key? key, required double opacity, dynamic alwaysIncludeSemantics = false}) Opacity

Available on Widget, provided by the WidgetLayoutPower extension

overflowBox({Key? key, Alignment alignment = Alignment.center, double? minWidth, double? maxWidth, double? minHeight, double? maxHeight}) OverflowBox

Available on Widget, provided by the BZWidgetBoxLayoutEventPower extension

positioned({Key? key, double? left, double? top, double? right, double? bottom, double? width, double? height}) Positioned

Available on Widget, provided by the WidgetLayoutPower extension

rotatedBox({Key? key, required int quarterTurns}) RotatedBox

Available on Widget, provided by the BZWidgetBoxLayoutEventPower extension

safeArea({Key? key, bool left = false, bool top = false, bool right = false, bool bottom = true, EdgeInsets minimum = EdgeInsets.zero, bool maintainBottomViewPadding = false}) SafeArea

Available on Widget, provided by the WidgetLayoutPower extension

singleChildScrollView({Key? key, Axis scrollDirection = Axis.vertical, bool reverse = false, EdgeInsetsGeometry? padding, bool? primary, ScrollPhysics? physics, ScrollController? controller, DragStartBehavior dragStartBehavior = DragStartBehavior.start}) SingleChildScrollView

Available on Widget, provided by the WidgetLayoutPower extension

sizedBox({Key? key, double? width, double? height}) SizedBox

Available on Widget, provided by the BZWidgetBoxLayoutEventPower extension

sizedOverflowBox({Key? key, required Size size, Alignment alignment = Alignment.center}) SizedOverflowBox

Available on Widget, provided by the BZWidgetBoxLayoutEventPower extension

smartRefresher({Key? key, required RefreshController controller, Widget? header, Widget? footer, bool enablePullDown = true, bool enablePullUp = false, bool enableTwoLevel = false, VoidCallback? onRefresh, VoidCallback? onLoading, OnTwoLevel? onTwoLevel, DragStartBehavior? dragStartBehavior, bool? primary, double? cacheExtent, int? semanticChildCount, bool? reverse, ScrollPhysics? physics, Axis? scrollDirection, ScrollController? scrollController}) → SmartRefresher

Available on Widget, provided by the WidgetLayoutPower extension

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
unconstrainedBox({Key? key, TextDirection? textDirection, Alignment alignment = Alignment.center, Axis? constrainedAxis}) UnconstrainedBox

Available on Widget, provided by the BZWidgetBoxLayoutEventPower extension

Operators

operator ==(Object other) bool
The equality operator.
inherited