flutter get image size code example
Example 1: flutter image size percentage
MediaQuery.of(context).size.width * 1
Example 2: how to get image file size in flutter
final bytes = image.readAsBytesSync().lengthInBytes;
final kb = bytes / 1024;
final mb = kb / 1024;
Example 3: flutter image size percentage
Expanded(child: Image.asset("assets/mypic.jpg")),