ImageUtils class

图片加载管理类

Constructors

ImageUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

FadeInImageAssetNetwork(String imgPath, {String placeholder = "none", double? width, double? height, BoxFit fit = BoxFit.cover}) Widget
加载网络图片
isImg(String url) → dynamic
loadAssetImage(String? imgPath, {Key? key, double? width, double? height, BoxFit fit = BoxFit.cover, BorderRadius radius = BorderRadius.zero, Color? color, String? package}) Widget
加载本地资源图片
loadAssetImageOrigin(String? imgPath, {double? width, double? height, BoxFit? fit, Color? color, String? package}) Widget
loadImage(String? imgPath, {Key? key, BorderRadius radius = BorderRadius.zero, String placeholder = "none", double? width, double? height, BoxFit fit = BoxFit.cover, String? package}) Widget
loadImageFile(File file, {double? width, double? height, BoxFit? fit, double roundRadius = 0}) Widget
loadImageFileOrigin(File file, {double? width, double? height, BoxFit? fit = BoxFit.cover, double roundRadius = 0}) Widget
loadNetworkImage(String? imgPath, {Key? key, BorderRadius radius = BorderRadius.zero, String placeholder = "none", double? width, double? height, BoxFit fit = BoxFit.cover, String? package}) Widget
加载网络图片