Skip to content

Commit ca567ef

Browse files
fix changelog
1 parent 7ccb8f8 commit ca567ef

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.1
2+
3+
- Fix for image preview param types
4+
15
## 0.6.0
26

37
- Upgraded to Null-safety, minimum Dart SDK required 2.12.0

lib/services/storage.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Storage extends Service {
133133
/// and spreadsheets, will return the file icon image. You can also pass query
134134
/// string arguments for cutting and resizing your preview image.
135135
///
136-
Future<Response> getFilePreview({required String fileId, int width = 0, int height = 0, int quality = 100, int borderWidth = 0, String borderColor = '', int borderRadius = 0, int opacity = 1, int rotation = 0, String background = '', String output = ''}) {
136+
Future<Response> getFilePreview({required String fileId, int width = 0, int height = 0, int quality = 100, int borderWidth = 0, String borderColor = '', int borderRadius = 0, double opacity = 1, int rotation = 0, String background = '', String output = ''}) {
137137
final String path = '/storage/files/{fileId}/preview'.replaceAll(RegExp('{fileId}'), fileId);
138138

139139
final Map<String, dynamic> params = {

0 commit comments

Comments
 (0)