From f4ca41daa1245e232e3fe9c837e10f5a4389d952 Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Wed, 3 May 2023 18:54:23 +0800 Subject: [PATCH] clean up code --- README.md | 2 +- lib/photo_gallery.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f79f1c3..bd95613 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ if (!imagePage.isLast) { * Getting a Medium ```dart final Medium medium = await PhotoGallery.getMedium( - mediumId: "10", + mediumId: "10", mediumType: MediumType.image ); ``` diff --git a/lib/photo_gallery.dart b/lib/photo_gallery.dart index 9ca35f6..cda25cb 100644 --- a/lib/photo_gallery.dart +++ b/lib/photo_gallery.dart @@ -29,7 +29,7 @@ class PhotoGallery { }) async { final json = await _channel.invokeMethod('listAlbums', { 'mediumType': mediumTypeToJson(mediumType), - 'hideIfEmpty': hideIfEmpty + 'hideIfEmpty': hideIfEmpty, }); return json.map((x) => Album.fromJson(x)).toList(); }