ui: Remove the ThumbnailService for images

This commit is contained in:
2022-08-14 13:25:17 +02:00
parent 58bccc1d83
commit 1886bf7ecc
5 changed files with 29 additions and 76 deletions

View File

@@ -1,3 +1,4 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:mime/mime.dart';
@@ -120,9 +121,8 @@ class SendFilesPage extends StatelessWidget {
if (mime.startsWith('image/')) {
// Render the image
return ImageThumbnailWidget(
path,
Image.memory,
return Image.file(
File(path),
);
} else if (mime.startsWith('video/')) {
// Render the video thumbnail