Answers for "how to get File height and width in flutter"

0

how to get File height and width in flutter

File image = new File('image.png'); // Or any other way to get a File instance.
var decodedImage = await decodeImageFromList(image.readAsBytesSync());
print(decodedImage.width);
print(decodedImage.height);
Posted by: Guest on March-26-2021

Code answers related to "how to get File height and width in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language