| @@ -73,7 +73,7 @@ class UtilAction { | |||
| static Future<File> compressImage(File file) async { | |||
| final dir = await path_provider.getTemporaryDirectory(); | |||
| final fileName = path.basenameWithoutExtension(file.path); | |||
| final targetPath = dir.absolute.path + "/$fileName.jpg"; | |||
| final targetPath = dir.absolute.path + "/compress_{$fileName}.jpg"; | |||
| final imgFile = await compressAndGetFile(file, targetPath); | |||
| return File(imgFile?.path ?? ''); | |||
| } | |||