Skip to content

Commit

Permalink
chore(mobile): update photo manager
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Sep 30, 2024
1 parent 8d564ce commit c0306e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions mobile/lib/repositories/file_media.repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ class FileMediaRepository implements IFileMediaRepository {
required String title,
String? relativePath,
}) async {
final entity = await PhotoManager.editor
.saveImage(data, title: title, relativePath: relativePath);
final entity = await PhotoManager.editor.saveImage(
data,
filename: title,
title: title,
relativePath: relativePath,
);
return AssetMediaRepository.toAsset(entity);
}

Expand Down
4 changes: 2 additions & 2 deletions mobile/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1211,10 +1211,10 @@ packages:
dependency: "direct main"
description:
name: photo_manager
sha256: "1e8bbe46a6858870e34c976aafd85378bed221ce31c1201961eba9ad3d94df9f"
sha256: "32a1ce1095aeaaa792a29f28c1f74613aa75109f21c2d4ab85be3ad9964230a4"
url: "https://pub.dev"
source: hosted
version: "3.2.3"
version: "3.5.0"
photo_manager_image_provider:
dependency: "direct main"
description:
Expand Down
2 changes: 1 addition & 1 deletion mobile/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
sdk: flutter

path_provider_ios:
photo_manager: ^3.2.3
photo_manager: ^3.5.0
photo_manager_image_provider: ^2.1.1
flutter_hooks: ^0.20.4
hooks_riverpod: ^2.4.9
Expand Down

0 comments on commit c0306e0

Please sign in to comment.