flutter resize image file code example
Example 1: resize image asset flutter
Image.asset( 'assets/images/file-name.jpg', height: 100, width: 100, )
Example 2: how to get image file size in flutter
final bytes = image.readAsBytesSync().lengthInBytes;
final kb = bytes / 1024;
final mb = kb / 1024;