getAssetImage static method

Image getAssetImage(
  1. String assetFilePath, {
  2. BoxFit? fit,
  3. bool gaplessPlayback = false,
})

Implementation

static Image getAssetImage(
  String assetFilePath, {
  BoxFit? fit,
  bool gaplessPlayback = false,
}) {
  if (!assetFilePath.startsWith('assets')) {
    assetFilePath = 'assets/$assetFilePath';
  }
  return Image.asset(
    assetFilePath,
    package: "tengits_widgets",
    fit: fit,
    scale: 3.0,
    gaplessPlayback: gaplessPlayback,
  );
}