{"id":19614801,"url":"https://github.com/leancloud/storage-sdk-flutter","last_synced_at":"2025-04-28T01:32:22.605Z","repository":{"id":36904287,"uuid":"230836474","full_name":"leancloud/Storage-SDK-Flutter","owner":"leancloud","description":"LeanCloud Storage SDK for Flutter/Dart.","archived":false,"fork":false,"pushed_at":"2023-05-29T05:53:51.000Z","size":29774,"stargazers_count":34,"open_issues_count":13,"forks_count":20,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-05T04:51:18.701Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leancloud.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":"2019-12-30T02:54:25.000Z","updated_at":"2023-10-03T12:35:23.000Z","dependencies_parsed_at":"2024-11-11T10:53:57.959Z","dependency_job_id":"098a904e-44d3-4a52-a003-4f3f8e4a11f3","html_url":"https://github.com/leancloud/Storage-SDK-Flutter","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FStorage-SDK-Flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FStorage-SDK-Flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FStorage-SDK-Flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FStorage-SDK-Flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancloud","download_url":"https://codeload.github.com/leancloud/Storage-SDK-Flutter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251234159,"owners_count":21556790,"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":[],"created_at":"2024-11-11T10:53:49.342Z","updated_at":"2025-04-28T01:32:17.584Z","avatar_url":"https://github.com/leancloud.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leancloud_storage\n\n![build](https://img.shields.io/github/workflow/status/leancloud/Storage-SDK-Flutter/Publish%20plugin)\n![the latest version](https://img.shields.io/pub/v/leancloud_storage)\n![platform](https://img.shields.io/badge/platform-flutter%7Cdart%20vm-ff69b4.svg)\n\nLeanCloud Storage Flutter SDK\n\n## Install\n\nAdding dependency in `pubspec.yaml`:\n\n```dart\ndependencies:\n  ...\n  leancloud_storage: ^0.7.10\n```\n\nThen run the following command:\n\n```sh\n$ flutter pub get\n```\n\n## Import\n\n```dart\nimport 'package:leancloud_storage/leancloud.dart';\n```\n\n## Initialize\n\n```dart\nLeanCloud.initialize(\n  APP_ID, APP_KEY,\n  server: APP_SERVER, // to use your own custom domain\n  queryCache: new LCQueryCache() // optinoal, enable cache\n);\n```\n\n## Debug\n\nEnable debug logs:\n\n```dart\nLCLogger.setLevel(LCLogger.DebugLevel);\n```\n\n## Usage\n\n### Objects\n\n```dart\nLCObject object = new LCObject('Hello');\nobject['intValue'] = 123;\nawait object.save();\n```\n\n### Queries\n\n```dart\nLCQuery\u003cLCObject\u003e query = new LCQuery\u003cLCObject\u003e('Hello');\nquery.limit(limit);\nList\u003cLCObject\u003e list = await query.find();\n```\n\n### Files\n\n```dart\nLCFile file = await LCFile.fromPath('avatar', './avatar.jpg');\nawait file.save(onProgress: (int count, int total) {\n    print('$count/$total');\n    if (count == total) {\n        print('done');\n    }\n});\n```\n\n### Users\n\n```dart\nawait LCUser.login('hello', 'world');\n```\n\n### GeoPoints\n\n```dart\nLCGeoPoint p1 = new LCGeoPoint(20.0059, 110.3665);\n```\n\n## More\n\nRefer to [LeanStorage Flutter Guide][guide] for more usage information.\nThe guide is also available in Chinese ([中文指南][zh]).\n\n[guide]: https://docs.leancloud.app/leanstorage_guide-flutter.html\n[zh]: https://leancloud.cn/docs/leanstorage_guide-flutter.html\n\nFor LeanMessage, check out [LeanCloud Official Plugin][plugin].\n\n[plugin]: https://pub.dev/packages/leancloud_official_plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fstorage-sdk-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancloud%2Fstorage-sdk-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fstorage-sdk-flutter/lists"}