openSystemGallery method

Future<String?> openSystemGallery({
  1. GalleryOptions? options,
})

打开系统相册 返回文件路径 ios info.plist add ios path

Implementation

Future<String?> openSystemGallery({GalleryOptions? options}) async {
  if (!supportPlatformMobile) return null;
  options ??= GalleryOptions();
  final String? path =
      await channel.invokeMethod('openSystemGallery', options.toMap());
  return path;
}