From 94e39e871418cea4730b744ff8886824d66f0299 Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Mon, 12 Jun 2023 00:32:10 +0800 Subject: [PATCH] set default value of start property of mediaPage in Android kotlin code --- .../main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt b/android/src/main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt index 6b36734..7c689e5 100644 --- a/android/src/main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt +++ b/android/src/main/kotlin/com/morbit/photogallery/PhotoGalleryPlugin.kt @@ -359,7 +359,7 @@ class PhotoGalleryPlugin : FlutterPlugin, MethodCallHandler { } return mapOf( - "start" to skip, + "start" to (skip ?: 0), "items" to media ) } @@ -378,7 +378,7 @@ class PhotoGalleryPlugin : FlutterPlugin, MethodCallHandler { } return mapOf( - "start" to skip, + "start" to (skip ?: 0), "items" to media ) }