{"id":17753150,"url":"https://github.com/configcat/flutter-preferences-cache","last_synced_at":"2025-04-07T23:32:53.986Z","repository":{"id":64509690,"uuid":"576302144","full_name":"configcat/flutter-preferences-cache","owner":"configcat","description":"Flutter Cache implementation for ConfigCat Dart (Flutter) SDK.","archived":false,"fork":false,"pushed_at":"2024-10-21T09:31:55.000Z","size":120,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-10-23T11:28:57.302Z","etag":null,"topics":["cache","configcat","feature-flag","feature-flagging","feature-flags","feature-toggle","feature-toggles","flutter"],"latest_commit_sha":null,"homepage":"https://configcat.com/docs/sdk-reference/dart","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/configcat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-09T13:58:57.000Z","updated_at":"2024-10-21T09:31:59.000Z","dependencies_parsed_at":"2024-06-01T20:44:02.918Z","dependency_job_id":"e02ef430-f536-4ab3-be14-fd1e9128bc43","html_url":"https://github.com/configcat/flutter-preferences-cache","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/configcat%2Fflutter-preferences-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/configcat%2Fflutter-preferences-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/configcat%2Fflutter-preferences-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/configcat%2Fflutter-preferences-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/configcat","download_url":"https://codeload.github.com/configcat/flutter-preferences-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223297244,"owners_count":17121977,"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":["cache","configcat","feature-flag","feature-flagging","feature-flags","feature-toggle","feature-toggles","flutter"],"created_at":"2024-10-26T13:22:53.368Z","updated_at":"2024-11-06T06:51:39.656Z","avatar_url":"https://github.com/configcat.png","language":"Dart","readme":"# ConfigCat Flutter Preferences Cache\n\n[![pub package](https://img.shields.io/pub/v/configcat_preferences_cache.svg)](https://pub.dev/packages/configcat_preferences_cache)\n[![Dart CI](https://github.com/configcat/flutter-preferences-cache/actions/workflows/flutter-cache-ci.yml/badge.svg?branch=main)](https://github.com/configcat/flutter-preferences-cache/actions/workflows/flutter-cache-ci.yml)\n\nhttps://configcat.com\n\nFlutter Cache implementation for [ConfigCat Dart (Flutter) SDK](https://configcat.com/docs/sdk-reference/dart/). It provides caching for Flutter applications on various platforms through [shared_preferences](https://pub.dev/packages/shared_preferences).\n\nCache storage location by platform:\n- **Web**: Browser `LocalStorage`.\n- **iOS / macOS**: `NSUserDefaults`.\n- **Android**: `SharedPreferences`.\n- **Linux**: File in `XDG_DATA_HOME` directory.\n- **Windows**: File in roaming `AppData` directory.\n\n## Getting started\n\n### 1. Install the package along with the [ConfigCat Dart (Flutter) SDK](https://configcat.com/docs/sdk-reference/dart/)\n```bash\nflutter pub add configcat_preferences_cache\nflutter pub add configcat_client\n```\n\n### 2. Import the *configcat_client* and *configcat_cache* package in your application code\n```dart\nimport 'package:configcat_preferences_cache/configcat_preferences_cache.dart';\nimport 'package:configcat_client/configcat_client.dart';\n```\n\n### 3. Use `ConfigCatPreferencesCache` at the ConfigCat SDK's initialization\n```dart\nfinal client = ConfigCatClient.get(\n    sdkKey: '#YOUR-SDK-KEY#',\n    options: ConfigCatOptions(cache: ConfigCatPreferencesCache()));\n```\n\n## Support\nIf you need help using this SDK, feel free to contact the ConfigCat Staff at [https://configcat.com](https://configcat.com). We're happy to help.\n\n## Contributing\nContributions are welcome. For more info please read the [Contribution Guideline](CONTRIBUTING.md).\n\n## About ConfigCat\nConfigCat is a feature flag and configuration management service that lets you separate feature releases from code deployments. You can turn features ON or OFF using the \u003ca href=\"https://app.configcat.com\" target=\"_blank\"\u003eConfigCat Dashboard\u003c/a\u003e even after they are deployed. ConfigCat lets you target specific groups of users based on region, email, or any other custom user attribute.\n\nConfigCat is a \u003ca href=\"https://configcat.com\" target=\"_blank\"\u003ehosted feature flag service\u003c/a\u003e that lets you manage feature toggles across frontend, backend, mobile, and desktop apps. \u003ca href=\"https://configcat.com\" target=\"_blank\"\u003eAlternative to LaunchDarkly\u003c/a\u003e. Management app + feature flag SDKs.\n\n- [Official ConfigCat SDKs for other platforms](https://github.com/configcat)\n- [Documentation](https://configcat.com/docs)\n- [Blog](https://configcat.com/blog)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfigcat%2Fflutter-preferences-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconfigcat%2Fflutter-preferences-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfigcat%2Fflutter-preferences-cache/lists"}