1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Generate video thumbnails

This commit is contained in:
2021-03-12 19:36:42 +01:00
parent 8f7ca14586
commit b84eba59e3
10 changed files with 100 additions and 12 deletions

View File

@ -77,8 +77,8 @@ Future<BytesFile> showPickFileDialog({
@required BuildContext context,
int maxFileSize,
List<String> allowedMimeTypes,
double imageMaxWidth,
double imageMaxHeight,
int imageMaxWidth,
int imageMaxHeight,
}) async {
assert(allowedMimeTypes != null);
@ -113,8 +113,8 @@ Future<BytesFile> showPickFileDialog({
source: choice == _FileChoices.PICK_IMAGE
? ImageSource.gallery
: ImageSource.camera,
maxWidth: imageMaxWidth,
maxHeight: imageMaxHeight,
maxWidth: imageMaxWidth.toDouble(),
maxHeight: imageMaxHeight.toDouble(),
);
if (image == null) return null;