{"id":16952732,"url":"https://github.com/ivarconr/unleash-client-dart","last_synced_at":"2025-03-22T13:31:31.430Z","repository":{"id":44752483,"uuid":"259578713","full_name":"ivarconr/unleash-client-dart","owner":"ivarconr","description":"Dart Client for Unleash","archived":false,"fork":false,"pushed_at":"2023-03-06T10:46:40.000Z","size":138,"stargazers_count":14,"open_issues_count":7,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T16:12:33.699Z","etag":null,"topics":["continuous-delivery","continuous-deployment","dart","devops","feature","feature-flags","feature-toggle","flutter","unleash"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/unleash","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/ivarconr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["ueman"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://paypal.me/JonasUekoetter","https://www.buymeacoffee.com/jonasuekoetter"]}},"created_at":"2020-04-28T08:36:17.000Z","updated_at":"2024-10-10T15:20:16.000Z","dependencies_parsed_at":"2024-10-28T13:20:09.384Z","dependency_job_id":"ec068a2a-84da-4b97-af55-4169334d8ba2","html_url":"https://github.com/ivarconr/unleash-client-dart","commit_stats":{"total_commits":61,"total_committers":10,"mean_commits":6.1,"dds":0.360655737704918,"last_synced_commit":"d0a77eb74f9d7e3d6d82280d19d17a1aa42b6cc8"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivarconr%2Funleash-client-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivarconr%2Funleash-client-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivarconr%2Funleash-client-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivarconr%2Funleash-client-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivarconr","download_url":"https://codeload.github.com/ivarconr/unleash-client-dart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244211208,"owners_count":20416598,"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":["continuous-delivery","continuous-deployment","dart","devops","feature","feature-flags","feature-toggle","flutter","unleash"],"created_at":"2024-10-13T22:04:12.743Z","updated_at":"2025-03-22T13:31:30.995Z","avatar_url":"https://github.com/ivarconr.png","language":"Dart","funding_links":["https://github.com/sponsors/ueman","https://paypal.me/JonasUekoetter","https://www.buymeacoffee.com/jonasuekoetter"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/ueman/unleash/master/img/unleash.png\" max-height=\"80\" alt=\"Unleash\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pub.dev/packages/unleash\"\u003e\u003cimg src=\"https://img.shields.io/pub/v/unleash.svg\" alt=\"pub.dev\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/ueman/unleash/workflows/unleash/badge.svg?branch=master\" alt=\"GitHub Workflow Status\"\u003e\n  \u003ca href=\"https://codecov.io/gh/ueman/unleash\"\u003e\u003cimg src=\"https://codecov.io/gh/ueman/unleash/branch/master/graph/badge.svg\" alt=\"Code Coverage\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/ueman#sponsor-me\"\u003e\u003cimg src=\"https://img.shields.io/github/sponsors/ueman\" alt=\"Sponsoring\"\u003e\u003c/a\u003e\n  \u003c!-- \n  \u003ca href=\"https://pub.dev/packages/unleash/score\"\u003e\u003cimg src=\"https://badges.bar/unleash/likes\" alt=\"likes\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pub.dev/packages/unleash/score\"\u003e\u003cimg src=\"https://badges.bar/unleash/popularity\" alt=\"popularity\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pub.dev/packages/unleash/score\"\u003e\u003cimg src=\"https://badges.bar/unleash/pub%20points\" alt=\"pub points\"\u003e\u003c/a\u003e\n  --\u003e\n\u003c/p\u003e\n\n# Unleash Client SDK for Dart and Flutter\n\nThis is an unofficial Unleash Client SDK for Dart. It is compatible with the [Unleash-hosted.com SaaS](https://www.unleash-hosted.com/) offering and [Unleash Open-Source](https://github.com/unleash/unleash).\nIt also works with [GitLab Feature Flags](https://docs.gitlab.com/ee/user/project/operations/feature_flags.html).\n\n## Getting started\nFirst, you will need to add `unleash` to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  unleash: x.y.z \n  # use the latest version found on pub.dev\n```\n\nThen, run `flutter packages get` in your terminal.\n\n### Create a new Unleash instance\n\nIt is easy to get a new instance of Unleash. In your app you typically *just want one instance of Unleash*, and inject that where you need it. \n\nTo create a new instance of Unleash you need to pass in a config object:\n```dart\nimport 'package:unleash/unleash.dart';\n\nFuture\u003cvoid\u003e main() async {\n  final unleash = await Unleash.init(\n    UnleashSettings(\n      appName: '\u003cappname\u003e',\n      instanceId: '\u003cinstanceid\u003e',\n      unleashApi: Uri.parse('\u003capi_url\u003e'),\n    ),\n  );\n  print(unleash.isEnabled('Awesome Feature'));\n}\n```\n\n### Awesome feature toggle API\n\nIt is really simple to use unleash.\n\n```dart\nif(unleash.isEnabled(\"AwesomeFeature\")) {\n  //do some magic\n} else {\n  //do old boring stuff\n}\n```\n\nCalling `unleash.isEnabled(\"AwesomeFeature\")` is the equivalent of calling `unleash.isEnabled(\"AwesomeFeature\", defaultValue: false)`. \nWhich means that it will return `false` if it cannot find the named toggle. \n\nIf you want it to default to `true` instead, you can pass `true` as the second argument:\n\n```dart\nunleash.isEnabled(\"AwesomeFeature\", defaultValue: true);\n```\n\n## Built-in activation strategies\n\n- [default](https://docs.getunleash.io/user_guide/activation_strategy#standard)\n- [UserIDs](https://docs.getunleash.io/user_guide/activation_strategy#userids)\n\n## Current state of development\nThis client SDK supports version 4 of the API.\nThis SDK currently does not support metrics reporting.\n\n## Author\n\n- Jonas Uekötter [GitHub](https://github.com/ueman) [Twitter](https://twitter.com/ue_man)\n\n## Sponsoring\nI'm working on my packages on my free-time, but I don't have as much time as I would. If this package or any other package I created is helping you, please consider to [sponsor](https://github.com/ueman#sponsor-me) me. By doing so, I will prioritize your issues or your pull-requests before the others.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivarconr%2Funleash-client-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivarconr%2Funleash-client-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivarconr%2Funleash-client-dart/lists"}