CustomImage class
Constructors
-
CustomImage.new({Key? key, required ImageProvider<Object> image, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, Rect? centerSlice, GestureLongPressCallback? onLongPress, BorderRadius? borderRadius, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, String? semanticLabel, BlendMode? colorBlendMode, ImageLoadingBuilder? loadingBuilder, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, bool gaplessPlayback = false, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, FilterQuality filterQuality = FilterQuality.medium})
-
-
CustomImage.asset(String assetName, {Key? key, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, String? package, Rect? centerSlice, GestureLongPressCallback? onLongPress, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, BorderRadius? borderRadius, String? semanticLabel, AssetBundle? bundle, BlendMode? colorBlendMode, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, bool gaplessPlayback = false, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, FilterQuality filterQuality = FilterQuality.medium})
-
-
CustomImage.file(String path, {Key? key, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, Rect? centerSlice, GestureLongPressCallback? onLongPress, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, BorderRadius? borderRadius, String? semanticLabel, double scale = 1.0, BlendMode? colorBlendMode, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, bool gaplessPlayback = false, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, FilterQuality filterQuality = FilterQuality.medium})
-
-
CustomImage.memory(Uint8List bytes, {Key? key, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, Rect? centerSlice, GestureLongPressCallback? onLongPress, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, BorderRadius? borderRadius, double scale = 1.0, String? semanticLabel, BlendMode? colorBlendMode, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, bool gaplessPlayback = false, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, FilterQuality filterQuality = FilterQuality.medium})
-
-
CustomImage.network(String url, {Key? key, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, int? maxWidth, int? maxHeight, String? cacheKey, Rect? centerSlice, GestureLongPressCallback? onLongPress, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, BorderRadius? borderRadius, double scale = 1.0, String? semanticLabel, BlendMode? colorBlendMode, ImageLoadingBuilder? loadingBuilder, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, bool gaplessPlayback = false, BaseCacheManager? cacheManager, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, void errorListener(Object)?, FilterQuality filterQuality = FilterQuality.medium})
-