From a00dcf30b577e36738efb519e2d6a7efcda12f61 Mon Sep 17 00:00:00 2001 From: Khushboo Agrawal <113587610+Khushboo1702@users.noreply.github.com> Date: Fri, 5 Jul 2024 01:51:37 +0530 Subject: [PATCH] fix(file-service):pass image quality to params (#95) --- lib/src/modules/common/file_upload/file_uploader.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/modules/common/file_upload/file_uploader.dart b/lib/src/modules/common/file_upload/file_uploader.dart index 75ee500..6fe5852 100644 --- a/lib/src/modules/common/file_upload/file_uploader.dart +++ b/lib/src/modules/common/file_upload/file_uploader.dart @@ -11,8 +11,8 @@ class FileService { /// this will throw error if file size exceeds [requiredFileSize]. static Future pickImage( - ImageSource source, String? name, double? requiredFileSize) async { - final pickedFile = await ImagePicker().pickImage(source: source); + ImageSource source, String? name, double? requiredFileSize,int? imageQuality) async { + final pickedFile = await ImagePicker().pickImage(source: source,imageQuality: imageQuality); if (pickedFile != null) { if (requiredFileSize != null) {