{"id":18868416,"url":"https://github.com/best-flutter/binding_helper","last_synced_at":"2025-06-21T08:06:40.673Z","repository":{"id":56826555,"uuid":"146732796","full_name":"best-flutter/binding_helper","owner":"best-flutter","description":"A easy way to use WidgetsBind like get rect of your widget","archived":false,"fork":false,"pushed_at":"2019-01-11T11:09:21.000Z","size":113,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T15:25:22.764Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/best-flutter.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}},"created_at":"2018-08-30T10:17:40.000Z","updated_at":"2023-03-21T06:14:55.000Z","dependencies_parsed_at":"2022-09-20T21:50:56.649Z","dependency_job_id":null,"html_url":"https://github.com/best-flutter/binding_helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/best-flutter/binding_helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Fbinding_helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Fbinding_helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Fbinding_helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Fbinding_helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/best-flutter","download_url":"https://codeload.github.com/best-flutter/binding_helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Fbinding_helper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261088354,"owners_count":23107682,"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-08T05:13:35.510Z","updated_at":"2025-06-21T08:06:35.657Z","avatar_url":"https://github.com/best-flutter.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# binding_helper\n\nHelper for WidgetsBinding.It is a easy way to use WidgetsBinding, \nfor example: Get the size of a widget after the widget is rendered.\n\n## Getting Started\n\n### Install\n\nadd \n```\n    binding_helper:\n```\n\nto your pubspec.yaml \n\n\n### Get the size of the widget\n\n\nUsing `GetRectMinxin`\n```\n\nclass MyState extends State\u003cMyWidget\u003e width GetRectMinxin\u003cMyWidget\u003e{\n\n    // The rect includs size and position of the widget\n    @override\n    void onGetRect(Rect rect) {\n        ...you code\n    }\n\n}\n\n```\n\nUsing `RectProvider`\n\n```\n\n new RectProvider(child: myWidget,onGetRect: (Rect rect){\n            /// rect is the `Rect` of myWidet\n          _rect = rect;\n\n},)\n\n```\n\n\n![](https://github.com/jzoom/images/raw/master/get_rect.gif)\n\n\n### More easy way to use `WidgetsBinding` is coming soon.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-flutter%2Fbinding_helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbest-flutter%2Fbinding_helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-flutter%2Fbinding_helper/lists"}