Browse Source

fix error when take a photo in action screen

phase2_dev
Đại Võ 1 year ago
parent
commit
253c3e9e8a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/presentation/screens/actions/util_action.dart

+ 1
- 1
lib/presentation/screens/actions/util_action.dart View File

@@ -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 ?? '');
}

Loading…
Cancel
Save