resize image asset flutter
Image.asset( 'assets/images/file-name.jpg', height: 100, width: 100, )
resize image asset flutter
Image.asset( 'assets/images/file-name.jpg', height: 100, width: 100, )
flutter - resize asset image to dart ui image
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;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us