utils/file library

Functions

cropImage({required File file, dynamic action(CroppedFile file)?, int? maxWidth, int? maxHeight, CropStyle cropStyle = CropStyle.rectangle, CropAspectRatio cropAspectRatio = const CropAspectRatio(ratioX: 3, ratioY: 1.2), ImageCompressFormat imageCompressFormat = ImageCompressFormat.png, AndroidUiSettings? androidUiSettings, IOSUiSettings? iOSUiSettings, List<CropAspectRatioPreset> aspectRatioPresets = const <CropAspectRatioPreset>[CropAspectRatioPreset.original, CropAspectRatioPreset.square, CropAspectRatioPreset.ratio3x2, CropAspectRatioPreset.ratio4x3, CropAspectRatioPreset.ratio16x9]}) Future<CroppedFile?>
showFilePicker({required dynamic action(List<File> file), FileType fileType = FileType.image, bool allowMultiple = false, List<String>? allowedExtensions}) → void