getImageFromPickedFile method

Image getImageFromPickedFile(
  1. PickedFile filePicked,
  2. double witdh
)

Implementation

Image getImageFromPickedFile(PickedFile filePicked, double witdh) {
  Uint8List bytes;
  var file = File(filePicked.path);
  bytes = file.readAsBytesSync();
  var i = Image.memory(bytes, width: witdh);
  return i;
}