{"id":19935035,"url":"https://github.com/optimizely/optimizely-flutter-sdk","last_synced_at":"2026-03-15T21:47:16.481Z","repository":{"id":71780556,"uuid":"500300773","full_name":"optimizely/optimizely-flutter-sdk","owner":"optimizely","description":"Flutter SDK for Optimizely Feature Experimentation and Optimizely Full Stack (legacy).","archived":false,"fork":false,"pushed_at":"2026-01-26T17:41:49.000Z","size":706,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":29,"default_branch":"master","last_synced_at":"2026-01-27T05:43:53.623Z","etag":null,"topics":["experimentation","optimizely-environment-prod","optimizely-environment-public","optimizely-owner-px","production"],"latest_commit_sha":null,"homepage":"","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/optimizely.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-06T05:18:29.000Z","updated_at":"2026-01-13T19:19:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2293b33-e828-4157-86c6-b9e739760b76","html_url":"https://github.com/optimizely/optimizely-flutter-sdk","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/optimizely/optimizely-flutter-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Foptimizely-flutter-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Foptimizely-flutter-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Foptimizely-flutter-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Foptimizely-flutter-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/optimizely","download_url":"https://codeload.github.com/optimizely/optimizely-flutter-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Foptimizely-flutter-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30551983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T15:03:43.933Z","status":"ssl_error","status_checked_at":"2026-03-15T15:03:37.630Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["experimentation","optimizely-environment-prod","optimizely-environment-public","optimizely-owner-px","production"],"created_at":"2024-11-12T23:18:32.950Z","updated_at":"2026-03-15T21:47:16.476Z","avatar_url":"https://github.com/optimizely.png","language":"Dart","readme":"# Optimizely Flutter SDK\n[![Pub Version](https://img.shields.io/pub/v/optimizely_flutter_sdk?color=blueviolet)](https://pub.dev/packages/optimizely_flutter_sdk)\n[![Pub](https://img.shields.io/pub/v/optimizely_flutter_sdk.svg)](https://pub.dev/packages/optimizely_flutter_sdk)\n[![Apache 2.0](https://img.shields.io/github/license/nebula-plugins/gradle-extra-configurations-plugin.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Build Status](https://github.com/optimizely/optimizely-flutter-sdk/actions/workflows/flutter.yml/badge.svg?branch=master)](https://github.com/optimizely/optimizely-flutter-sdk/actions)\n[![Coverage Status](https://coveralls.io/repos/github/optimizely/optimizely-flutter-sdk/badge.svg?branch=master)](https://coveralls.io/github/optimizely/optimizely-flutter-sdk?branch=master)\n\nThis repository houses the Flutter SDK for use with Optimizely Feature Experimentation and Optimizely Full Stack (legacy).\n\nOptimizely Feature Experimentation is an A/B testing and feature management tool for product development teams that enables you to experiment at every step. Using Optimizely Feature Experimentation allows for every feature on your roadmap to be an opportunity to discover hidden insights. Learn more at [Optimizely.com](https://www.optimizely.com/products/experiment/feature-experimentation/), or see the [developer documentation](https://docs.developers.optimizely.com/experimentation/v4.0.0-full-stack/docs/welcome).\n\nOptimizely Rollouts is [free feature flags](https://www.optimizely.com/free-feature-flagging/) for development teams. You can easily roll out and roll back features in any application without code deploys, mitigating risk for every feature on your roadmap.\n\n## Get Started\n\nRefer to the [Flutter SDK's developer documentation](https://docs.developers.optimizely.com/experimentation/v4.0.0-full-stack/docs/flutter-sdk) for detailed instructions on getting started with using the SDK.\n\n### Requirements\n\nSee the [pubspec.yaml](https://github.com/optimizely/optimizely-flutter-sdk/blob/master/pubspec.yaml) file for Flutter version requirements.\n\nOn the Android platform, the SDK requires a minimum SDK version of 21 or higher and compile SDK version of 32.\n\nOn the iOS platform, the SDK requires a minimum version of 10.0.\n\nOther Flutter platforms are not currently supported by this SDK.\n\n### Install the SDK\n\nTo add the flutter-sdk to your project dependencies, include the following in your app's pubspec.yaml:\n\n```\n   optimizely_flutter_sdk: ^3.4.0\n```\n\nThen run \n\n```bash\n   flutter pub get\n```\n\n## Use the Flutter SDK\n\n### Initialization\n\nImport the package in your application code:\n\n```dart\n   import 'package:optimizely_flutter_sdk/optimizely_flutter_sdk.dart';\n```\n\nInstantiate the SDK, adding your SDK Key and initializing the client:\n\n```dart\n   var flutterSDK = OptimizelyFlutterSdk(\"your_sdk_key\");\n   var response = await flutterSDK.initializeClient();\n```\n\n### Feature Rollouts\n```dart\n   import 'package:optimizely_flutter_sdk/optimizely_flutter_sdk.dart';\n\n   // Also supports eventOptions, datafilePeriodicDownloadInterval, datafileHostOptions and defaultDecideOptions\n   var flutterSDK = OptimizelyFlutterSdk(\"your_sdk_key\");\n\n   var response = await flutterSDK.initializeClient();\n\n   // User attributes are optional and used for targeting and results segmentation\n   var attributes = {\n      \"state\": \"California\",\n      \"likes_donuts\": true\n   };\n   var user = await flutterSDK.createUserContext(\"user_id\", attributes);\n   var decideReponse = await user!.decide(\"binary_feature\");\n```\n\n## SDK Development\n\n### Unit Tests\n\nTo run [unit tests](https://docs.flutter.dev/cookbook/testing/unit/introduction) using terminal, simply use the following command:\n\n```bash\nflutter test test/optimizely_flutter_sdk_test.dart\n```\n\n### Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md).\n\n### Other Optimizely SDKs\n\n- Agent - https://github.com/optimizely/agent\n\n- Android - https://github.com/optimizely/android-sdk\n\n- C# - https://github.com/optimizely/csharp-sdk\n\n- Flutter - https://github.com/optimizely/optimizely-flutter-sdk\n\n- Go - https://github.com/optimizely/go-sdk\n\n- Java - https://github.com/optimizely/java-sdk\n\n- JavaScript - https://github.com/optimizely/javascript-sdk\n\n- PHP - https://github.com/optimizely/php-sdk\n\n- Python - https://github.com/optimizely/python-sdk\n\n- React - https://github.com/optimizely/react-sdk\n\n- Ruby - https://github.com/optimizely/ruby-sdk\n\n- Swift - https://github.com/optimizely/swift-sdk\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimizely%2Foptimizely-flutter-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptimizely%2Foptimizely-flutter-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimizely%2Foptimizely-flutter-sdk/lists"}