forked from eatvio/eatvio_app
fix(image_compressing): add for posts and consultant registration
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:eatvio_app/core/image_compressing/image_compress_utility.dart';
|
||||
import 'package:eatvio_app/features/consultant/become_consultant/models/consultant_profile_model.dart';
|
||||
import 'package:eatvio_app/features/consultant/become_consultant/presentation/bloc/register_consultant_cubit/register_consultant_state.dart';
|
||||
import 'package:eatvio_app/features/consultant/become_consultant/repositories/consultant_repository.dart';
|
||||
@@ -38,6 +39,6 @@ class RegisterConsultantCubit extends Cubit<RegisterConsultantState> {
|
||||
}
|
||||
|
||||
Future<List<String>> uploadPhotos(List<File> files) async {
|
||||
return await consultantRepository.uploadPhotos(files: files);
|
||||
return await consultantRepository.uploadPhotos(files: await ImageCompressUtility.compressFilesList(files));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user