From 1b1dfc7c81dbe72cb8b21ab32fdc4a6864f13ba9 Mon Sep 17 00:00:00 2001 From: Lukas Lihotzki Date: Mon, 12 Oct 2020 11:56:20 +0200 Subject: [PATCH] Update native_imaging --- lib/utils/resize_image.dart | 8 ++++---- pubspec.lock | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/utils/resize_image.dart b/lib/utils/resize_image.dart index 93b328f..102c78b 100644 --- a/lib/utils/resize_image.dart +++ b/lib/utils/resize_image.dart @@ -18,8 +18,8 @@ Future resizeImage(MatrixImageFile file, try { final nativeImg = native.Image(); await nativeImg.loadEncoded(file.bytes); - file.width = nativeImg.width(); - file.height = nativeImg.height(); + file.width = nativeImg.width; + file.height = nativeImg.height; args = _IsolateArgs( width: file.width, height: file.height, bytes: file.bytes, max: max); nativeImg.free(); @@ -96,8 +96,8 @@ Future<_IsolateResponse> _isolateFunction(_IsolateArgs args) async { final ret = _IsolateResponse( blurhash: blurhash, jpegBytes: jpegBytes, - width: nativeImg.width(), - height: nativeImg.height()); + width: nativeImg.width, + height: nativeImg.height); nativeImg.free(); diff --git a/pubspec.lock b/pubspec.lock index e9511b5..fea4cbd 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -553,7 +553,7 @@ packages: description: path: "." ref: master - resolved-ref: bd24832f96537447174aa34ba78eaed7ff05bb8e + resolved-ref: "7fef2565e4ab0c3f6a0e0ac19a77c30ea6778e16" url: "https://gitlab.com/famedly/libraries/native_imaging.git" source: git version: "0.0.1"