perf: improve image resizing

This commit is contained in:
Gordon Hayes
2022-08-10 14:36:39 +02:00
parent 6afde872e5
commit 55bb828bd1
3 changed files with 35 additions and 10 deletions
@@ -100,6 +100,7 @@ class StreamFileAttachment extends StreamAttachmentWidget {
borderRadius: BorderRadius.circular(8),
);
// TODO: Improve image memory. This is using the full image instead of a smaller version (thumbnail)
Widget _getFileTypeImage(BuildContext context) {
if (isImageAttachment) {
return Material(