Image.asset( 'assets/images/file-name.jpg', height: 100, width: 100, )
Future<ui.Image> getUiImage(String imageAssetPath, int height, int width) async {
final ByteData assetImageByteData = await rootBundle.load(imageAssetPath);
final codec = await ui.instantiateImageCodec(
assetImageByteData.buffer.asUint8List(),
targetHeight: height,
targetWidth: width,
);
final image = (await codec.getNextFrame()).image;
}