title: Converting a plain Uint8List to image widget
body: <p>I'm new to Flutter and I have a question regarding a small project of mine.</p>
  <p>I'm trying to show an image I'm receiving through a socket.
  I have an Uint8List representing the image matrix (not encoded in any way), and I have succeded transforming it into an Image widget with the following code:</p>
  <pre><code>Image im = Image.fromBytes(1280, 1024, frameData, format: Format.luminance);
  var jpgImage = encodeJpg(im);
  .
  .
  //In Widget:
  return Image.memory(jpgImage, gaplessPlayback: true);
  </code></pre>
  <p>and it works, but it takes too much time.
  I see that the encodeJpg function takes at least 150ms, which is too much for me because each such image is a part of a streaming video.</p>
  <p>My question is, how can I transform a plain(not encoded) Uint8List - representing a regular matrix, 0-256 values, to an Image widget, in the most efficient way?</p>
  <p>Thank you!</p>