{"id":21196343,"url":"https://github.com/davigmacode/flutter_wx_anchor","last_synced_at":"2026-05-11T02:50:44.041Z","repository":{"id":230926354,"uuid":"780464071","full_name":"davigmacode/flutter_wx_anchor","owner":"davigmacode","description":"Clickable zone within a widget that activates an interactive overlay upon touch or hover.","archived":false,"fork":false,"pushed_at":"2024-08-12T03:01:54.000Z","size":639,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T21:49:56.590Z","etag":null,"topics":["anchor","flutter","ui","widgetarian"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/wx_anchor","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davigmacode.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":["davigmacode"],"patreon":null,"open_collective":null,"ko_fi":"davigmacode","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.buymeacoffee.com/davigmacode"]}},"created_at":"2024-04-01T14:38:38.000Z","updated_at":"2024-12-16T10:58:55.000Z","dependencies_parsed_at":"2024-04-13T06:23:48.047Z","dependency_job_id":"3d3cf3d9-8ff4-4dfb-9a32-2f736696a395","html_url":"https://github.com/davigmacode/flutter_wx_anchor","commit_stats":null,"previous_names":["davigmacode/flutter_wx_anchor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davigmacode/flutter_wx_anchor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davigmacode%2Fflutter_wx_anchor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davigmacode%2Fflutter_wx_anchor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davigmacode%2Fflutter_wx_anchor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davigmacode%2Fflutter_wx_anchor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davigmacode","download_url":"https://codeload.github.com/davigmacode/flutter_wx_anchor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davigmacode%2Fflutter_wx_anchor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32879551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["anchor","flutter","ui","widgetarian"],"created_at":"2024-11-20T19:35:38.231Z","updated_at":"2026-05-11T02:50:44.025Z","avatar_url":"https://github.com/davigmacode.png","language":"Dart","funding_links":["https://github.com/sponsors/davigmacode","https://ko-fi.com/davigmacode","https://www.buymeacoffee.com/davigmacode"],"categories":[],"sub_categories":[],"readme":"[![Pub Version](https://img.shields.io/pub/v/wx_anchor)](https://pub.dev/packages/wx_anchor) ![GitHub](https://img.shields.io/github/license/davigmacode/flutter_wx_anchor) [![GitHub](https://badgen.net/badge/icon/buymeacoffee?icon=buymeacoffee\u0026color=yellow\u0026label)](https://www.buymeacoffee.com/davigmacode) [![GitHub](https://badgen.net/badge/icon/ko-fi?icon=kofi\u0026color=red\u0026label)](https://ko-fi.com/davigmacode)\n\nClickable zone within a widget that activates an interactive overlay upon touch or hover.\n\n[![Preview](https://github.com/davigmacode/flutter_wx_anchor/raw/main/media/preview.gif)](https://davigmacode.github.io/flutter_wx_anchor)\n\n[Demo](https://davigmacode.github.io/flutter_wx_anchor)\n\n## Usage\n\nTo read more about classes and other references used by `wx_anchor`, see the [API Reference](https://pub.dev/documentation/wx_anchor/latest/).\n\n### Overlay Effect\n`WxAnchor` has a default overlay effect that changes the opacity based on user interactions (`focused`, `hovered`, `pressed`, and `disabled`).\n```dart\n// Rectangle shape\nWxAnchor(\n  onTap: () {},\n  padding: const EdgeInsets.symmetric(\n    horizontal: 10,\n    vertical: 6,\n  ),\n  borderRadius: BorderRadius.circular(5),\n  child: const Text('Click Here'),\n)\n\n// Circle shape\nWxAnchor.circle(\n  onTap: () {},\n  overlayRadius: 20, // overlay radius\n  child: const Icon(Icons.chat),\n)\n```\n\n### Disable Overlay effect\n```dart\nWxAnchor(\n  onTap: () {},\n  overlay: false,\n  child: const Text('Click Here'),\n)\n```\n\n### Customize Overlay Effect\n```dart\n// Changes overlay opacity based on user interaction\nWxAnchor(\n  onTap: () {},\n  overlayColor: Colors.amber,\n  focusedStyle: const WxAnchorStyle(overlayOpacity: 0.25),\n  hoveredStyle: const WxAnchorStyle(overlayOpacity: 0.15),\n  pressedStyle: const WxAnchorStyle(\n    overlayOpacity: 0.25,\n    overlayColor: Colors.red,\n  ),\n  borderRadius: BorderRadius.circular(15),\n  child: const Icon(Icons.power_off),\n)\n\n// Changes overlay radius based on user interaction\nWxAnchor.circle(\n  onTap: () {},\n  overlayRadius: 0,\n  hoveredStyle: const WxAnchorStyle.circle(overlayRadius: 25),\n  pressedStyle: const WxAnchorStyle.circle(overlayRadius: 20),\n  child: const Icon(Icons.power_off),\n)\n```\n\n### Child Opacity \u0026 Scale\n```dart\nWxAnchor.circle(\n  onTap: () {},\n  opacity: 1,\n  scale: 1,\n  overlay: false,\n  hoveredStyle: const WxAnchorStyle(opacity: .7, scale: 1.1),\n  pressedStyle: const WxAnchorStyle(opacity: 1, scale: 1),\n  child: const Icon(Icons.chat),\n)\n```\n\n## Sponsoring\n\n\u003ca href=\"https://www.buymeacoffee.com/davigmacode\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"45\"\u003e\u003c/a\u003e\n\u003ca href=\"https://ko-fi.com/davigmacode\" target=\"_blank\"\u003e\u003cimg src=\"https://storage.ko-fi.com/cdn/brandasset/kofi_s_tag_white.png\" alt=\"Ko-Fi\" height=\"45\"\u003e\u003c/a\u003e\n\nIf this package or any other package I created is helping you, please consider to sponsor me so that I can take time to read the issues, fix bugs, merge pull requests and add features to these packages.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavigmacode%2Fflutter_wx_anchor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavigmacode%2Fflutter_wx_anchor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavigmacode%2Fflutter_wx_anchor/lists"}