{"id":26457891,"url":"https://github.com/vellt/tabbarview-notifies-the-view-without-delay","last_synced_at":"2026-05-03T20:34:56.374Z","repository":{"id":157586147,"uuid":"595254787","full_name":"vellt/TabBarView-Notifies-The-View-Without-Delay","owner":"vellt","description":"I demonstrate the ability of TabBarView to notify the view with the correct index without delay. Documentation in the rows of the code.","archived":false,"fork":false,"pushed_at":"2023-02-11T14:38:33.000Z","size":1021,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-08T06:01:52.540Z","etag":null,"topics":["delay","issues","tabbarview"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vellt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-01-30T18:00:50.000Z","updated_at":"2023-01-30T18:18:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"18eca012-ad20-4e20-8239-c57097747a3e","html_url":"https://github.com/vellt/TabBarView-Notifies-The-View-Without-Delay","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vellt/TabBarView-Notifies-The-View-Without-Delay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellt%2FTabBarView-Notifies-The-View-Without-Delay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellt%2FTabBarView-Notifies-The-View-Without-Delay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellt%2FTabBarView-Notifies-The-View-Without-Delay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellt%2FTabBarView-Notifies-The-View-Without-Delay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vellt","download_url":"https://codeload.github.com/vellt/TabBarView-Notifies-The-View-Without-Delay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellt%2FTabBarView-Notifies-The-View-Without-Delay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275225868,"owners_count":25427000,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"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":["delay","issues","tabbarview"],"created_at":"2025-03-18T23:53:06.995Z","updated_at":"2026-05-03T20:34:51.174Z","avatar_url":"https://github.com/vellt.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TabBarView notifies the View without delay⏱️\n\nI encountered an interesting problem throgh a project, with many open issues on the Web, such as: \n\n- [TabController notifies correct index with a delay (after the tab scroll animation ends) #88875](https://github.com/flutter/flutter/issues/88875)\n \n- [TabController listener triggers with delay on swipe #89371](https://github.com/flutter/flutter/issues/89371)\n\n- [Describe how to listen for page updates in TabBar and TabBarView when using DefaultTabController #53155](https://github.com/flutter/flutter/issues/53155)\n\nI demonstrate the ability of TabBarView to notify the view with the correct index without delay. ✅ \u003cbr\u003e\nDocumentation in the [the rows of the code](https://github.com/vellt/TabBarView-Notifies-The-View-Without-Delay/blob/main/lib/main.dart). ✍️ \nThe soul of the project: \n\n```dart\n// indexController.change() comes from IndexController, which is declared in main.dart.\n\nvar _ = DefaultTabController.of(context);\n_?.animation!.addListener(() {\n  indexController.change(newValue:(_.indexIsChanging)?_.index:_.animation!.value.round());\n});\n\n```\n\n🎥 Here is a **preview GIF**, where you can see, how it works:\n\n\u003cimg title=\"\" src=\"https://github.com/vellt/TabBarView-Notifies-The-View-Without-Delay/blob/main/1675099977893.gif?raw=true\" alt=\"https://github.com/vellt/TabBarView-Notifies-The-View-Without-Delay/blob/main/1675099977893.gif?raw=true\" width=\"328\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvellt%2Ftabbarview-notifies-the-view-without-delay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvellt%2Ftabbarview-notifies-the-view-without-delay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvellt%2Ftabbarview-notifies-the-view-without-delay/lists"}