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 ) }