From 390c48e1c7bcbd42670b2cf26b234b4e7f7c11c3 Mon Sep 17 00:00:00 2001 From: Azad99-9 Date: Fri, 22 Dec 2023 00:17:48 +0530 Subject: [PATCH] added coverage to missing lines. --- lib/locator.dart | 6 ------ .../third_party_service/multi_media_pick_service.dart | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/locator.dart b/lib/locator.dart index 72e92050b..0c7dd4f3d 100644 --- a/lib/locator.dart +++ b/lib/locator.dart @@ -71,15 +71,9 @@ final connectivity = locator(); ///creating GetIt for OrganizationService. final organizationService = locator(); -///creating GetIt for ImagePicker. -final imagePicker = locator(); - ///creating GetIt for ImageService. final imageService = locator(); -///creating GetIt for ImageCropper. -final imageCropper = locator(); - /// This function registers the widgets/objects in "GetIt". /// /// **params**: diff --git a/lib/services/third_party_service/multi_media_pick_service.dart b/lib/services/third_party_service/multi_media_pick_service.dart index 9ebf128c0..c093dec63 100644 --- a/lib/services/third_party_service/multi_media_pick_service.dart +++ b/lib/services/third_party_service/multi_media_pick_service.dart @@ -25,7 +25,7 @@ class MultiMediaPickerService { MultiMediaPickerService() { _picker = locator(); _fileStream = _fileStreamController.stream.asBroadcastStream(); - _imageService = locator(); + _imageService = imageService; } //Local Variables