update README.md

This commit is contained in:
Wenqi Li 2021-10-21 19:01:52 +08:00
parent 077690a43f
commit 330fd1929e

View File

@ -51,6 +51,7 @@ final List<Album> imageAlbums = await PhotoGallery.listAlbums(
);
final List<Album> videoAlbums = await PhotoGallery.listAlbums(
mediumType: mediumType.video,
hideIfEmpty: false
);
```
* Listing media in an album
@ -76,6 +77,13 @@ if (!imagePage.isLast) {
// ...
}
```
* Getting a Medium
```dart
final Medium medium = await PhotoGallery.getMedium(
mediumId: "10",
MediumType: MediumType.image
);
```
* Getting a file
```dart
final File file = await medium.getFile();