| 440505e9ea1eee7043d2cbfeb318f6bc | |||||
| dab672e712362fdbbfa98386624f95d6 |
| static Future<File> compressAndGetFile(File file, String targetPath) async { | static Future<File> compressAndGetFile(File file, String targetPath) async { | ||||
| final result = await FlutterImageCompress.compressAndGetFile( | final result = await FlutterImageCompress.compressAndGetFile( | ||||
| file.absolute.path, targetPath, | file.absolute.path, targetPath, | ||||
| quality: 5, minWidth: 1280, minHeight: 720); | |||||
| quality: 50, minWidth: 1280, minHeight: 720); | |||||
| return result; | return result; | ||||
| } | } | ||||
| } | } |