{"id":20664015,"url":"https://github.com/flutterando/value_selectable","last_synced_at":"2025-04-19T16:11:09.661Z","repository":{"id":244409006,"uuid":"815186783","full_name":"Flutterando/value_selectable","owner":"Flutterando","description":"A Flutter package that provides computed values for `ValueNotifier`, inspired by the Selectors from Recoil.","archived":false,"fork":false,"pushed_at":"2024-06-30T15:25:40.000Z","size":640,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T23:56:44.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/value_selectable","language":"C++","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/Flutterando.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":"2024-06-14T14:37:51.000Z","updated_at":"2024-12-31T09:31:47.000Z","dependencies_parsed_at":"2024-11-16T21:17:37.966Z","dependency_job_id":null,"html_url":"https://github.com/Flutterando/value_selectable","commit_stats":null,"previous_names":["flutterando/value_selectable"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fvalue_selectable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fvalue_selectable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fvalue_selectable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fvalue_selectable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flutterando","download_url":"https://codeload.github.com/Flutterando/value_selectable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235531367,"owners_count":19004940,"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-16T19:21:38.836Z","updated_at":"2025-01-25T03:17:35.488Z","avatar_url":"https://github.com/Flutterando.png","language":"C++","readme":"# ValueSelectable\n\n\n![image](https://github.com/Flutterando/value_selectable/blob/main/assets/image.png?raw=true)\n\nA Flutter package that provides computed values for `ValueNotifier`, inspired by the Selectors from Recoil.\n\n\n## Overview\n\nThis package includes two main classes:\n\n- `ValueSelector`: Computes a synchronous value based on a given scope.\n\nThese classes allow you to create computed values that automatically update when their dependencies change, providing a reactive programming model similar to Recoil selectors.\n\n## Features\n\n- Reactive computation of values based on dependencies.\n- Synchronous and asynchronous selectors.\n- Automatic updates when dependencies change.\n- Easy integration with Flutter's ValueNotifier.\n\n\n## Installation\n\nAdd the following to your `pubspec.yaml`:\n\n```\nflutter pub add value_selectable\n```\n\n\n## Usage\n\n### ValueSelector\n\nComputes a synchronous value based on a given scope:\n\n```dart\nimport 'package:flutter/widgets.dart';\nimport 'package:value_selectable/value_selectable.dart';\n\nvoid main() {\n  final valueNotifier = ValueNotifier\u003cint\u003e(1);\n  final selector = ValueSelector\u003cint\u003e((get) =\u003e get(valueNotifier) + 1);\n\n  print(selector.value); // Outputs: 2\n\n  valueNotifier.value = 2;\n  print(selector.value); // Outputs: 3\n}\n\n```\n\n\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutterando%2Fvalue_selectable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflutterando%2Fvalue_selectable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutterando%2Fvalue_selectable/lists"}