{"id":32304428,"url":"https://github.com/floodoo/rating_summary","last_synced_at":"2026-02-22T01:38:38.561Z","repository":{"id":62270551,"uuid":"555825879","full_name":"floodoo/rating_summary","owner":"floodoo","description":"Create a summary statistic Widget to display the rating and average rating of a product.","archived":false,"fork":false,"pushed_at":"2025-02-03T20:19:26.000Z","size":634,"stargazers_count":2,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T06:31:19.891Z","etag":null,"topics":["flutter","rating","rating-component","rating-statistics","ratingbar","summary-statistics","widget"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/rating_summary","language":"C++","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/floodoo.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":"2022-10-22T12:24:21.000Z","updated_at":"2025-02-03T20:19:29.000Z","dependencies_parsed_at":"2025-02-03T21:21:54.771Z","dependency_job_id":"ac04787d-2557-4a87-b1ca-408c9d05fc0c","html_url":"https://github.com/floodoo/rating_summary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/floodoo/rating_summary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floodoo%2Frating_summary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floodoo%2Frating_summary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floodoo%2Frating_summary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floodoo%2Frating_summary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floodoo","download_url":"https://codeload.github.com/floodoo/rating_summary/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floodoo%2Frating_summary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29703227,"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":["flutter","rating","rating-component","rating-statistics","ratingbar","summary-statistics","widget"],"created_at":"2025-10-23T06:28:12.548Z","updated_at":"2026-02-22T01:38:38.555Z","avatar_url":"https://github.com/floodoo.png","language":"C++","readme":"# Rating Summary Widget\n\nCreate a summary statistic Widget to display the rating and average rating of a product.\n\n![Screenshot of the raring summary widget with the average rewiew indicator](https://raw.githubusercontent.com/floodoo/rating_summary/main/assets/readme/rating_summary_average.png)\n![Screenshot of the raring summary widget without the average rewiew indicator](https://raw.githubusercontent.com/floodoo/rating_summary/main/assets/readme/rating_summary.png)\n\n## Installing:\n\n1. Add the dependency in your `pubspec.yaml` file.\n\n```yaml\ndependencies:\n  rating_summary: ^1.0.2+1\n```\n\n2. Import the `rating_summary` package.\n\n```dart\nimport 'package:rating_summary/rating_summary.dart';\n```\n\n## Usage\n\n```dart\nRatingSummary(\n  counter: 13,\n  average: 3.846,\n  showAverage: true,\n  counterFiveStars: 5,\n  counterFourStars: 4,\n  counterThreeStars: 2,\n  counterTwoStars: 1,\n  counterOneStars: 1,\n)\n```\n\n### Parameters\n\n| Parameter         | Description                                 | Type      | Default                                              | Required |\n| ----------------- | ------------------------------------------- | --------- | ---------------------------------------------------- | -------- |\n| counter           | The total number of ratings.                | int       | -                                                    | ✓        |\n| average           | The average rating.                         | double    | 0.0                                                  | -        |\n| showAverage       | Show the average rating indicator.          | bool      | true                                                 | -        |\n| averageStyle      | The style of the average rating indicator.  | TextStyle | TextStyle(fontWeight: FontWeight.bold, fontSize: 40) | -        |\n| counterFiveStars  | The number of 5 star ratings.               | int       | 0                                                    | -        |\n| counterFourStars  | The number of 4 star ratings.               | int       | 0                                                    | -        |\n| counterThreeStars | The number of 3 star ratings.               | int       | 0                                                    | -        |\n| counterTwoStars   | The number of 2 star ratings.               | int       | 0                                                    | -        |\n| counterOneStars   | The number of 1 star ratings.               | int       | 0                                                    | -        |\n| labelCounterFiveStars | The label of the 5 star rating.               | Widget    | Text( '5', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold))                                           | -        |\n| labelCounterFourStars | The label of the 4 star rating.               | Widget    | Text( '4', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold))                                            | -        |\n| labelCounterThreeStars | The label of the 3 star rating.               | Widget    | Text( '3', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold))                                            | -        |\n| labelCounterTwoStars | The label of the 2 star rating.               | Widget    | Text( '2', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold))                                            | -        |\n| labelCounterOneStars | The label of the 1 star rating.               | Widget    | Text( '1', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold))                                            | -        |\n| labelCounterFiveStarsStyle | The style of the 5 star rating label.               | TextStyle    | TextStyle(fontSize: 14, fontWeight: FontWeight.bold)                                            | -        |\n| labelCounterFourStarsStyle | The style of the 4 star rating label.               | TextStyle    | TextStyle(fontSize: 14, fontWeight: FontWeight.bold)                                            | -        |\n| labelCounterThreeStarsStyle | The style of the 3 star rating label.               | TextStyle    | TextStyle(fontSize: 14, fontWeight: FontWeight.bold)                                            | -        |\n| labelCounterTwoStarsStyle | The style of the 2 star rating label.               | TextStyle    | TextStyle(fontSize: 14, fontWeight: FontWeight.bold)                                            | -        |\n| labelCounterOneStarsStyle | The style of the 1 star rating label.               | TextStyle    | TextStyle(fontSize: 14, fontWeight: FontWeight.bold)                                            | -        |\n| label             | The label of the rating summary.            | String    | \"Rating\"                                             | -        |\n| labelStyle        | The style of the label.                     | TextStyle | TextStyle(fontWeight: FontWeight.w600)               | -        |\n| color             | The primary color of the rating summary.    | Color     | Colors.amber                                         | -        |\n| backgroundColor   | The background color of the rating summary. | Color     | Color(0xFFEEEEEE)                                    | -        |\n| space             | The space between the label and the bar.    | double    | 20                                                   | -        |\n| thickness         | The thickness of the bar.                   | doubel    | 10                                                   | -        |\n| starColor         | The color of stars.                         | Color     | Colors.amber                                         | -        |\n| alignment         | The alignment of rating summary.            | CrossAxisAlignment      | CrossAxisAlignment.center              | -        |","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloodoo%2Frating_summary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloodoo%2Frating_summary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloodoo%2Frating_summary/lists"}