{"id":32297563,"url":"https://github.com/uncoded-decimal/custom_dots_indicator","last_synced_at":"2026-02-22T00:02:04.340Z","repository":{"id":237608699,"uuid":"794874279","full_name":"uncoded-decimal/custom_dots_indicator","owner":"uncoded-decimal","description":"A customisable scroll index dots indicator","archived":false,"fork":false,"pushed_at":"2025-01-18T08:10:51.000Z","size":1274,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T04:44:56.125Z","etag":null,"topics":["dots","flutter","flutter-apps","indicators","scrollview"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/custom_dots_indicator","language":"C++","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/uncoded-decimal.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-05-02T06:10:07.000Z","updated_at":"2025-05-09T17:02:12.000Z","dependencies_parsed_at":"2024-05-02T20:13:44.282Z","dependency_job_id":"b10c0ef9-f8cd-4ef6-96f6-be4f2abf820d","html_url":"https://github.com/uncoded-decimal/custom_dots_indicator","commit_stats":null,"previous_names":["uncoded-decimal/custom_dots_indicator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uncoded-decimal/custom_dots_indicator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncoded-decimal%2Fcustom_dots_indicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncoded-decimal%2Fcustom_dots_indicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncoded-decimal%2Fcustom_dots_indicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncoded-decimal%2Fcustom_dots_indicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uncoded-decimal","download_url":"https://codeload.github.com/uncoded-decimal/custom_dots_indicator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uncoded-decimal%2Fcustom_dots_indicator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29699335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dots","flutter","flutter-apps","indicators","scrollview"],"created_at":"2025-10-23T04:44:28.614Z","updated_at":"2026-02-22T00:02:04.334Z","avatar_url":"https://github.com/uncoded-decimal.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nThis package provides a Dots Indicator of which the developer can customise anything that's needed to. Here's what you can customise:\n\n1. Number of Dots\n2. Provide a Label and customise it\n3. Customise each Dot/Label for the current scroll index and by the Dot index\n\nNote: Currently, only supports the use of a `ScrollController` for your scrollable views. You can also use `PageController` here because it is an instance of `ScrollController`.\n\nTo learn more about the why's and the how's of this package, see this [article](https://uncoded-decimal.medium.com/custom-scroll-dots-indicator-f3a8a0e0b1fb).\n\n\u003cimg src=\"https://raw.githubusercontent.com/uncoded-decimal/custom_dots_indicator/12d633fbcc3984e6233dce38dfe836d045394ca0/screenshots/animation.gif\" alt=\"screenshot\" height=\"500\"/\u003e\n\n## Usage\n\nYou can start using this package by simply calling:\n\n```dart\n    /// For the Generic use-case of all dots\n    CustomDotsIndicator()\n\n    /// If your app needs a Label\n    CustomDotsIndicator.withLabel()\n\n    /// If the need to completely customise\n    /// the label and other dots arises\n    CustomDotsIndicator.custom()\n```\n\n#### Parameters\n\n##### Required\n\n1. **listLength**\n\n   This is the length of the list for which the indicator is to be used.\n\n   _This helps calculate the range for which the active dot position would be calculated._\n\n2. **controller**\n\n   The `ScrollController` instance to be provided to your scrollable widget.\n\n   _This helps the widget receive updates on `ScrollController` updates an helps with further calculations._\n\n##### Optional (_Present for all cases_)\n\n1. **dotsCount**\n\n   This is the number of dots you want for your indicator.\n\n   _Defaults to 3._\n\n2. **dotsDistance**\n\n   This is the space to be used between the dots.\n\n   _Defaults to 8 px._\n\n3. **activeDotRadius**\n\n   The radius to be used for each of the _active_ dots.\n\n   _Defaults to 4 px._\n\n4. **inactiveDotRadius**\n\n   The radius to be used for each of the _inactive_ dots.\n\n   _Defaults to 4 px._\n\n5. **activeDotColor**\n\n   The color to be used for the _active_ dot.\n\n6. **inactiveDotRadius**\n\n   The color to be used for each of the _inactive_ dots.\n\n7. **customDotSpaceBuilder**\n\n   Helps customise the space between the dots.\n\n8. **customDotsTransition**\n\n   Animation to use for building the active/inactive dots.\n\n### Customisation\n\n`CustomDotsIndicator.withLabel` offers two optional parameters:\n\n1. `labelStyle`\n\n   This helps customise the default text on the default Label.\n\n2. `selectedLabelBuilder`\n\n   This helps customise and build your own Label widget from two variables:\n\n   1. **`currentIndex`**: the calculated visible item on the screen,\n   2. **`dotIndex`**: the position of the current dot.\n\n\u003cimg src=\"https://raw.githubusercontent.com/uncoded-decimal/custom_dots_indicator/502c57828baa4ee7567fd1b1e10bdcddec3b40e7/screenshots/default_label.png\" alt=\"default label\" height=\"120\"/\u003e\n\n---\n\n`CustomDotsIndicator.custom` offers one more optional parameter _with_ the above listed two:\n\n1. `unselectedDotBuilder`\n\n   This helps bring the inactive dots under customisation. Much like the `selectedLabelBuilder`, it takes the same two variables but uses them to render the _inactive_ dots.\n\n---\n\nPlease feel free to request updates based on your requirements, I'll make changes as I get to them.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funcoded-decimal%2Fcustom_dots_indicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funcoded-decimal%2Fcustom_dots_indicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funcoded-decimal%2Fcustom_dots_indicator/lists"}