assetImage static method

Widget assetImage(
  1. String res, {
  2. double? width,
  3. double? height,
  4. BoxFit? fit,
  5. Color? color,
  6. double? scale,
  7. bool isLocal = true,
})

Implementation

static Widget assetImage(String res, {double? width, double? height, BoxFit? fit, Color? color, double? scale, bool isLocal = true}) {
  return Image.asset(
    res,
    width: width,
    height: height,
    fit: fit,
    color: color,
    scale: scale,
    package: isLocal?'lib_common_fx':null,
  );
}