{"id":13490929,"url":"https://github.com/Milad-Akarie/smooth_page_indicator","last_synced_at":"2025-03-28T07:31:35.522Z","repository":{"id":38361533,"uuid":"230656429","full_name":"Milad-Akarie/smooth_page_indicator","owner":"Milad-Akarie","description":"Flutter Smooth PageView indicators","archived":false,"fork":false,"pushed_at":"2025-02-23T10:55:33.000Z","size":5186,"stargazers_count":1307,"open_issues_count":1,"forks_count":150,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-26T11:01:51.288Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Milad-Akarie.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":"2019-12-28T19:35:58.000Z","updated_at":"2025-03-23T23:10:10.000Z","dependencies_parsed_at":"2022-07-12T17:27:47.049Z","dependency_job_id":"be3d1c99-314e-442a-a7f8-0f0589ac1743","html_url":"https://github.com/Milad-Akarie/smooth_page_indicator","commit_stats":{"total_commits":40,"total_committers":8,"mean_commits":5.0,"dds":0.275,"last_synced_commit":"ec36b1936070b9f0e660bbfbabae90f78d5ac9f0"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milad-Akarie%2Fsmooth_page_indicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milad-Akarie%2Fsmooth_page_indicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milad-Akarie%2Fsmooth_page_indicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Milad-Akarie%2Fsmooth_page_indicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Milad-Akarie","download_url":"https://codeload.github.com/Milad-Akarie/smooth_page_indicator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245989148,"owners_count":20705768,"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-07-31T19:00:52.143Z","updated_at":"2025-03-28T07:31:35.499Z","avatar_url":"https://github.com/Milad-Akarie.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/miladakarie"],"categories":["Dart","Components"],"sub_categories":["UI"],"readme":"\n# smooth_page_indicator\n  \u003cp \u003e  \n\u003ca href=\"https://img.shields.io/badge/License-MIT-green\"\u003e\u003cimg   \nalign=\"center\" src=\"https://img.shields.io/badge/License-MIT-green\" alt=\"MIT License\"\u003e\u003c/a\u003e    \n\u003ca href=\"https://github.com/Milad-Akarie/smooth_page_indicator/stargazers\"\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/github/stars/Milad-Akarie/smooth_page_indicator?style=flat\u0026logo=github\u0026colorB=green\u0026label=stars\" alt=\"stars\"\u003e\u003c/a\u003e    \n\u003ca href=\"https://pub.dev/packages/smooth_page_indicator/versions/1.0.0\"\u003e\u003cimg   \nalign=\"center\" src=\"https://img.shields.io/pub/v/smooth_page_indicator.svg\" alt=\"pub version\"\u003e\u003c/a\u003e    \n\u003ca href=\"https://www.buymeacoffee.com/miladakarie\" target=\"_blank\"\u003e\u003cimg align=\"center\" src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"30px\" width= \"108px\"\u003e\u003c/a\u003e  \n\u003c/p\u003e    \n\n## Introduction\nPage indicators are a crucial part of any app that involves multiple pages. They help users to  \nunderstand the number of pages and their current position. `SmoothPageIndicator` is a Flutter  \npackage that provides a set of animated page indicators with a variety of effects.\n\n![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/four_squares_demo.gif?raw=true)\n\n\n## Effects\n`SmoothPageIndicator` comes with a set of built-in effects that you can use to animate the active dot,  \nyou can also customize each effect to your liking.\n\nfor more specific customization, try the `CustomizableEffect` which allows for more customization.\n\n| Effect                                    |                                                         Preview                                                          |  \n|:------------------------------------------|:------------------------------------------------------------------------------------------------------------------------:|  \n| Worm                                      |              ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/worm.gif?raw=true)               |\n| Worm  style = WormStyle.thin [v1.0.0]     |            ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/worm-thin.gif?raw=true)            |\n| Expanding Dots                            |          ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/expanding-dot.gif?raw=true)          |\n| Jumping dot                               |           ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/jumping-dot.gif?raw=true)           | \n| Jumping dot with vertical offset [v1.0.0] | ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/jumping-dot-effect-with-voffset.gif?raw=true) | \n| Scrolling Dots                            |        ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/scrolling-dots-2.gif?raw=true)         | \n| Slide                                     |              ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/slide.gif?raw=true)              |\n| Scale                                     |              ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/scale.gif?raw=true)              | \n| Swap                                      |              ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/swap.gif?raw=true)               | \n| Swap type = SwapType.yRotation [v1.0.0]   |         ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/swap-yrotation.gif?raw=true)          |\n| Color Transition [0.1.2]                  |        ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/color-transition.gif?raw=true)         | \n| Customizable demo-1 [v1.0.0]              |         ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/custimizable-1.gif?raw=true)          | \n| Customizable demo-2 [v1.0.0]              |         ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/customizable-2.gif?raw=true)          | \n| Customizable demo-3 [v1.0.0]              |         ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/customizable-3.gif?raw=true)          | \n| Customizable demo-4 [v1.0.0]              |         ![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/customizable-4.gif?raw=true)          |\n\n## Usage\n`SmoothPageIndicator` uses the PageController's scroll offset to animate the active dot.\n\n```dart\nSmoothPageIndicator(    \n   controller: controller,  // PageController    \n   count:  6,    \n   effect:  WormEffect(),  // your preferred effect    \n   onDotClicked: (index){    \n  }\n)    \n   \n```   \n## Usage without a PageController\nUnlike `SmoothPageIndicator`, `AnimatedSmoothIndicator` is self animated and all it needs is the  \nactive index.\n\n```dart \nAnimatedSmoothIndicator(    \n   activeIndex: yourActiveIndex,    \n   count: 6,    \n   effect: WormEffect(), \n)    \n```   \n## Vertical layout support\nSmooth page indicator supports both horizontal and vertical layouts.\n\n```dart  \nSmoothPageIndicator(    \n   controller: controller,  // PageController    \n   count:  6,    \n   axisDirection: Axis.vertical,    \n   effect:  WormEffect(), \n)    \n```\n![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/vertical_demo.gif?raw=true)\n\n## Scrolling dots effect\nSmooth page indicator comes with a shipped it scrolling dots effect, (similar to the one used in instagram), it's useful when you have a large number of pages.\n\n![](https://github.com/Milad-Akarie/smooth_page_indicator/blob/master/demo/smooth_page_indicator_demo_4.gif?raw=true)\n\n## Customization\nEach effect comes with its own set of properties that you can customize to your liking.   \nfor example, you can customize direction, width, height, radius, spacing, paint style, color and more... of `SlideEffect` like follows:\n\n```dart \n  SmoothPageIndicator(    \n   controller: controller,    \n   count:  6,    \n   axisDirection: Axis.vertical,    \n   effect:  SlideEffect(    \n      spacing:  8.0,    \n      radius:  4.0,    \n      dotWidth:  24.0,    \n      dotHeight:  16.0,    \n      paintStyle:  PaintingStyle.stroke,    \n      strokeWidth:  1.5,    \n      dotColor:  Colors.grey,    \n      activeDotColor:  Colors.indigo    \n  ), \n)    \n   \n```   \n\n## Support the Library\n\nYou can support the library by liking it on pub, staring in on Github and reporting any bugs you  \nencounter.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMilad-Akarie%2Fsmooth_page_indicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMilad-Akarie%2Fsmooth_page_indicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMilad-Akarie%2Fsmooth_page_indicator/lists"}