chore: Update dependencies
This commit is contained in:
parent
da7e433ea3
commit
7a74a8a93f
52 changed files with 163 additions and 175 deletions
|
|
@ -15,7 +15,7 @@ extension ResizeImage on MatrixFile {
|
|||
|
||||
Future<MatrixVideoFile> resizeVideo() async {
|
||||
final tmpDir = await getTemporaryDirectory();
|
||||
final tmpFile = File(tmpDir.path + '/' + name);
|
||||
final tmpFile = File('${tmpDir.path}/$name');
|
||||
MediaInfo? mediaInfo;
|
||||
await tmpFile.writeAsBytes(bytes);
|
||||
try {
|
||||
|
|
@ -37,7 +37,7 @@ extension ResizeImage on MatrixFile {
|
|||
Future<MatrixImageFile?> getVideoThumbnail() async {
|
||||
if (!PlatformInfos.isMobile) return null;
|
||||
final tmpDir = await getTemporaryDirectory();
|
||||
final tmpFile = File(tmpDir.path + '/' + name);
|
||||
final tmpFile = File('${tmpDir.path}/$name');
|
||||
if (await tmpFile.exists() == false) {
|
||||
await tmpFile.writeAsBytes(bytes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue