Skip to content

Commit

Permalink
fix(file-service):pass image quality to params (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khushboo1702 authored Jul 4, 2024
1 parent 267cb09 commit a00dcf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/modules/common/file_upload/file_uploader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class FileService {
/// this will throw error if file size exceeds [requiredFileSize].
static Future<PlatformFile?> 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) {
Expand Down

0 comments on commit a00dcf3

Please sign in to comment.