{"id":28221172,"url":"https://github.com/7wilightxdev/gallery_asset_picker","last_synced_at":"2026-04-16T20:39:08.662Z","repository":{"id":177318616,"uuid":"653132917","full_name":"7wilightxdev/gallery_asset_picker","owner":"7wilightxdev","description":"Gallery Asset Picker","archived":false,"fork":false,"pushed_at":"2023-12-22T07:25:57.000Z","size":4189,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T05:16:05.970Z","etag":null,"topics":["asset-picker","camera","flutter-package","gallery-images"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7wilightxdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-13T13:16:40.000Z","updated_at":"2024-10-19T06:31:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3f8cfb9-5614-4b16-8fa5-eafc7f20e7cf","html_url":"https://github.com/7wilightxdev/gallery_asset_picker","commit_stats":null,"previous_names":["haonguyenuet/gallery_asset_picker","7wilightxdev/gallery_asset_picker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fgallery_asset_picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fgallery_asset_picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fgallery_asset_picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fgallery_asset_picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7wilightxdev","download_url":"https://codeload.github.com/7wilightxdev/gallery_asset_picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fgallery_asset_picker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259066937,"owners_count":22800233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asset-picker","camera","flutter-package","gallery-images"],"created_at":"2025-05-18T05:15:54.751Z","updated_at":"2026-04-16T20:39:03.594Z","avatar_url":"https://github.com/7wilightxdev.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gallery Asset Picker\n\nA gallery picker and camera in one package. The Gallery and Camera views can both be utilized as Flutter widgets\n\n---\n\n## Table of contents\n\n- [Screenshot](#screenshot)\n- [Install](#install)\n- [Setup](#setup)\n- [Usage](#usage)\n- [Bugs or Requests](#bugs-or-requests)\n\n---\n\n## Screenshot\n\n|                  Collapse Mode                   |                   Expand Mode\n| :----------------------------------------------: | :----------------------------------------------:\n| ![image1](screenshots/Screenshot1_20230619.png) | ![image2](screenshots/Screenshot2_20230619.png)\n\n---\n\n## Install\n\n### 1. Add dependency\n\nAdd this to your package's `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  gallery_asset_picker: ^latest_version\n```\n\n### 2. Import it\n\nNow in your `Dart` code, you can use:\n\n```dart\nimport 'package:gallery_asset_picker/gallery_asset_picker.dart';\n```\n\n---\n\n## Setup\n\nFor more details (if needed) you can go through \u003ca href=\"https://pub.dev/packages/photo_manager\"\u003ePhoto Manager\u003c/a\u003e and \u003ca href=\"https://pub.dev/packages/camera\"\u003eCamera\u003c/a\u003e readme section as well.\n\n### 1. Android\n\n- Change the minimum Android sdk version to 21 (or higher) in your `android/app/build.gradle` file.\n\n```gradle\nminSdkVersion 21\n```\n\n- Required permissions: `READ_EXTERNAL_STORAGE`, `WRITE_EXTERNAL_STORAGE`, `ACCESS_MEDIA_LOCATION`.\n\n- Glide\n\nAndroid native use glide to create image thumb bytes, version is 4.11.0.\n\nIf your other android library use the library, and version is not same, then you need edit your android project's build.gradle.\n\n```gradle\nrootProject.allprojects {\n\n    subprojects {\n        project.configurations.all {\n            resolutionStrategy.eachDependency { details -\u003e\n                if (details.requested.group == 'com.github.bumptech.glide'\n                        \u0026\u0026 details.requested.name.contains('glide')) {\n                    details.useVersion '4.11.0'\n                }\n            }\n        }\n    }\n}\n```\n\nIf you found some warning logs with `Glide` appearing,\nthen the main project needs an implementation of `AppGlideModule`.\nSee [Generated API](https://sjudd.github.io/glide/doc/generatedapi.html).\n\n### 2. iOS\n\nAdd following content to `info.plist`.\n\n```xml\n\u003ckey\u003eNSPhotoLibraryUsageDescription\u003c/key\u003e\n\u003cstring\u003eReplace with your permission description..\u003c/string\u003e\n\u003ckey\u003eNSCameraUsageDescription\u003c/key\u003e\n\u003cstring\u003eReplace with your permission description..\u003c/string\u003e\n```\n\n---\n\n## Usage\n\n- Use `GalleryAssetPicker.initialize` to config for the gallery\n\n```dart\nGalleryAssetPicker.initialize(GalleryConfig(\n    enableCamera: true,\n    crossAxisCount: 3,\n    colorScheme: const ColorScheme.light(primary: Colors.blue),\n    onReachMaximum: () {\n      Fluttertoast.showToast(\n        msg: \"You have reached the allowed number of images\",\n        toastLength: Toast.LENGTH_SHORT,\n        gravity: ToastGravity.CENTER,\n        textColor: Colors.white,\n        fontSize: 16.0,\n      );\n    },\n    textTheme: const TextTheme(\n      bodyMedium: TextStyle(fontSize: 16),\n      titleMedium: TextStyle(fontSize: 14, fontWeight: FontWeight.w700),\n      titleSmall: TextStyle(fontSize: 14, fontWeight: FontWeight.w500),\n    ),\n));\n```\n\n- To make the gallery view sliding, use the `SlidableGalleryOverlay`; otherwise, ignore it\n\n```dart\nclass SlidableGalleryDemo extends StatelessWidget {\n late final GalleryController galleryController;\n\n ...\n\n @override\n Widget build(BuildContext context) {\n   return SlidableGalleryOverlay(\n     controller: galleryController,\n     child: Scaffold(\n       body: ...\n     ),\n   );\n }\n}\n```\n\n- Using `GalleryAssetPicker.pick()` to pick assets\n\n```dart\n  ...\n  onPressed : () async {\n    final _selectedAssets = await GalleryAssetPicker.pick(\n      context,\n      maxCount: 5,\n      requestType: RequestType.image,\n    );\n  }\n  ...\n```\n\n- You can use other widgets included in the package, and for a more thorough implementation and modification, browse the example app\n\n---\n\n## Bugs or Requests\n\nIf you encounter any problems feel free to open an [issue](https://github.com/haonguyenuet/gallery_asset_picker/issues/new?template=bug_report.md). If you feel the library is missing a feature, please raise a [ticket](https://github.com/haonguyenuet/gallery_asset_picker/issues/new?template=feature_request.md) on GitHub and I'll look into it. Pull request are also welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7wilightxdev%2Fgallery_asset_picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7wilightxdev%2Fgallery_asset_picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7wilightxdev%2Fgallery_asset_picker/lists"}