Skip to content

Commit

Permalink
iOSでのみallowCompressionをtrueに
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Nov 7, 2024
1 parent 37563f4 commit ea1abd8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ class NoteCreateNotifier extends _$NoteCreateNotifier {
final result = await FilePicker.platform.pickFiles(
type: FileType.image,
allowMultiple: true,
allowCompression: Platform.isIOS, // v8.1.3ではiOS以外でこの値を使用していない
compressionQuality: 0, // Androidでは0にすることで圧縮パススルー
);
if (result == null || result.files.isEmpty) return;

Expand Down

0 comments on commit ea1abd8

Please sign in to comment.