Skip to content

Commit 5833912

Browse files
authored
chore(ui): bump file_picker and record deps (#2215)
1 parent bf400a1 commit 5833912

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

melos.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ command:
4040
ezanimation: ^0.6.0
4141
firebase_core: ^3.0.0
4242
firebase_messaging: ^15.0.0
43-
file_picker: ^8.0.5
43+
file_picker: ^10.1.2
4444
file_selector: ^1.0.3
4545
flutter_app_badger: ^1.5.0
4646
flutter_local_notifications: ^18.0.1
@@ -73,7 +73,7 @@ command:
7373
photo_view: ^0.15.0
7474
provider: ^6.0.5
7575
rate_limiter: ^1.0.0
76-
record: ^5.2.0
76+
record: ">=5.2.0 <7.0.0"
7777
responsive_builder: ^0.7.0
7878
rxdart: ^0.28.0
7979
sentry_flutter: ^8.3.0

packages/stream_chat_flutter/lib/src/attachment/handler/stream_attachment_handler_html.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ class StreamAttachmentHandler extends StreamAttachmentHandlerBase {
2323
FileType type = FileType.any,
2424
List<String>? allowedExtensions,
2525
Function(FilePickerStatus)? onFileLoading,
26+
@Deprecated('Has no effect, Use compressionQuality instead.')
2627
bool allowCompression = true,
28+
int compressionQuality = 0,
2729
bool withData = true,
2830
bool withReadStream = false,
2931
bool lockParentWindow = true,
@@ -34,7 +36,7 @@ class StreamAttachmentHandler extends StreamAttachmentHandlerBase {
3436
type: type,
3537
allowedExtensions: allowedExtensions,
3638
onFileLoading: onFileLoading,
37-
allowCompression: allowCompression,
39+
compressionQuality: compressionQuality,
3840
withData: withData,
3941
withReadStream: withReadStream,
4042
lockParentWindow: lockParentWindow,

packages/stream_chat_flutter/lib/src/attachment/handler/stream_attachment_handler_io.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ class StreamAttachmentHandler extends StreamAttachmentHandlerBase {
111111
FileType type = FileType.any,
112112
List<String>? allowedExtensions,
113113
Function(FilePickerStatus)? onFileLoading,
114+
@Deprecated('Has no effect, Use compressionQuality instead.')
114115
bool allowCompression = true,
116+
int compressionQuality = 0,
115117
bool withData = true,
116118
bool withReadStream = false,
117119
bool lockParentWindow = true,
@@ -122,7 +124,7 @@ class StreamAttachmentHandler extends StreamAttachmentHandlerBase {
122124
type: type,
123125
allowedExtensions: allowedExtensions,
124126
onFileLoading: onFileLoading,
125-
allowCompression: allowCompression,
127+
compressionQuality: compressionQuality,
126128
withData: withData,
127129
withReadStream: withReadStream,
128130
lockParentWindow: lockParentWindow,

packages/stream_chat_flutter/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies:
3030
diacritic: ^0.1.5
3131
dio: ^5.4.3+1
3232
ezanimation: ^0.6.0
33-
file_picker: ^8.0.5
33+
file_picker: ^10.1.2
3434
file_selector: ^1.0.3
3535
flutter:
3636
sdk: flutter
@@ -52,7 +52,7 @@ dependencies:
5252
photo_manager: ^3.2.0
5353
photo_view: ^0.15.0
5454
rate_limiter: ^1.0.0
55-
record: ^5.2.0
55+
record: ">=5.2.0 <7.0.0"
5656
rxdart: ^0.28.0
5757
share_plus: ^10.0.2
5858
shimmer: ^3.0.0

0 commit comments

Comments
 (0)