Skip to content

Commit

Permalink
fix(mobile): Naming fix for the edited file (#11503)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuvi-raj-P authored Aug 5, 2024
1 parent bb78eb4 commit f067773
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mobile/lib/pages/editing/edit.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ class EditImagePage extends ConsumerWidget {
gravity: ToastGravity.CENTER,
);

await PhotoManager.editor
.saveImage(imageData, title: "_edited.jpg");
await PhotoManager.editor.saveImage(
imageData,
title: '${asset!.fileName}_edited.jpg',
);
await ref.read(albumProvider.notifier).getDeviceAlbums();
Navigator.of(context).popUntil((route) => route.isFirst);
} catch (e) {
Expand Down

0 comments on commit f067773

Please sign in to comment.