update README.md

This commit is contained in:
Wenqi Li 2020-08-14 19:43:32 +08:00
parent 3ca1278391
commit 133d87ab29

View File

@ -87,7 +87,7 @@ final List<int> data = await medium.getThumbnail();
```dart ```dart
final List<int> data = await PhotoGallery.getThumbnail(mediumId: mediumId); final List<int> data = await PhotoGallery.getThumbnail(mediumId: mediumId);
``` ```
You can also specify thumbnail width and height on Android API 21 or higher; You can also specify thumbnail width, height and whether provider high quality or not on iOS: You can also specify thumbnail width and height on Android API 29 or higher; You can also specify thumbnail width, height and whether provider high quality or not on iOS:
```dart ```dart
final List<int> data = await medium.getThumbnail( final List<int> data = await medium.getThumbnail(
width: 128, width: 128,
@ -110,7 +110,7 @@ final List<int> data = await album.getThumbnail();
```dart ```dart
final List<int> data = await PhotoGallery.getAlbumThumbnail(albumId: albumId); final List<int> data = await PhotoGallery.getAlbumThumbnail(albumId: albumId);
``` ```
You can also specify thumbnail width and height on Android API 21 or higher; You can also specify thumbnail width, height and whether provider high quality or not on iOS: You can also specify thumbnail width and height on Android API 29 or higher; You can also specify thumbnail width, height and whether provider high quality or not on iOS:
```dart ```dart
final List<int> data = await album.getThumbnail( final List<int> data = await album.getThumbnail(
width: 128, width: 128,
@ -158,7 +158,7 @@ FadeInImage(
), ),
) )
``` ```
Width and height is only available on Android API 21+ or iOS platform Width and height is only available on Android API 21+ or iOS platform. High quality is only available on iOS platform.
* Displaying a full size image * Displaying a full size image
You can use PhotoProvider to display the full size image (here with the help of dependency [transparent_image](https://pub.dev/packages/transparent_image)): You can use PhotoProvider to display the full size image (here with the help of dependency [transparent_image](https://pub.dev/packages/transparent_image)):