Librería para obtener peso de una imagen.

Uso

import 'package:get_file_weight/get_file_weight.dart';

final imagePicker = ImagePicker();
final xFile = await imagePicker.pickImage(source: ImageSource.gallery);

var fileWeight = FileWeight();
print('Weight: ${fileWeight.getWeight(xFile)} bytes');

Libraries

get_file_weight
Support for doing something awesome.