diff --git a/README.md b/README.md index bd95613..823bb58 100644 --- a/README.md +++ b/README.md @@ -23,22 +23,11 @@ Add the following permissions to your *AndroidManifest.xml*, located in ``` - - - ... - -``` - -API 29+ - -Add the following property to your *AndroidManifest.xml*, located in ```/android/app/src/main/AndroidManifest.xml``` to [opt-out of scoped storage](https://developer.android.com/training/data-storage/use-cases#opt-out-scoped-storage): -```xml - - ... - - + + + ``` @@ -46,22 +35,17 @@ Add the following property to your *AndroidManifest.xml*, located in ``` imageAlbums = await PhotoGallery.listAlbums( - mediumType: MediumType.image, -); +final List imageAlbums = await PhotoGallery.listAlbums(); final List videoAlbums = await PhotoGallery.listAlbums( mediumType: MediumType.video, - hideIfEmpty: false + newest: false, + hideIfEmpty: false, ); ``` * Listing media in an album ```dart -final MediaPage imagePage = await imageAlbum.listMedia( - skip: 5, - take: 10, -); -final MediaPage videoPage = await videoAlbum.listMedia( - newest: false, +final MediaPage imagePage = await imageAlbum.listMedia(); +final MediaPage videoPage = await imageAlbum.listMedia( skip: 5, take: 10, ); @@ -133,6 +117,8 @@ final List data = await album.getThumbnail( ```dart final List data = await PhotoGallery.getAlbumThumbnail( albumId: albumId, + mediumType: MediumType.image, + newest: false, width: 128, height: 128, highQuality: true, @@ -164,7 +150,7 @@ FadeInImage( fit: BoxFit.cover, placeholder: MemoryImage(kTransparentImage), image: AlbumThumbnailProvider( - albumId: albumId, + album: album, width: 128, height: 128, hightQuality: true,