{"id":13550569,"url":"https://github.com/thenifemi/flutter_polls","last_synced_at":"2026-02-23T17:01:31.533Z","repository":{"id":39915849,"uuid":"489116114","full_name":"thenifemi/flutter_polls","owner":"thenifemi","description":"🗳 Customizable Polls for Flutter.","archived":false,"fork":false,"pushed_at":"2024-01-31T14:31:56.000Z","size":475,"stargazers_count":34,"open_issues_count":4,"forks_count":28,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T00:34:12.274Z","etag":null,"topics":["android","dart","flutter","flutter-apps","flutter-package","flutter-polls","flutter-widget","ios","lib","library","mobile","polling","polls","votes","voting"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_polls","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/thenifemi.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-05-05T20:24:47.000Z","updated_at":"2025-03-31T18:32:27.000Z","dependencies_parsed_at":"2024-01-14T16:06:05.583Z","dependency_job_id":"af8da526-973d-46d0-9348-fb2c74ce7667","html_url":"https://github.com/thenifemi/flutter_polls","commit_stats":{"total_commits":46,"total_committers":5,"mean_commits":9.2,"dds":"0.13043478260869568","last_synced_commit":"53716c2e4da5f722050c15303568a6d51621db8d"},"previous_names":[],"tags_count":11,"template":true,"template_full_name":null,"purl":"pkg:github/thenifemi/flutter_polls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenifemi%2Fflutter_polls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenifemi%2Fflutter_polls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenifemi%2Fflutter_polls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenifemi%2Fflutter_polls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thenifemi","download_url":"https://codeload.github.com/thenifemi/flutter_polls/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenifemi%2Fflutter_polls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29748786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: 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":["android","dart","flutter","flutter-apps","flutter-package","flutter-polls","flutter-widget","ios","lib","library","mobile","polling","polls","votes","voting"],"created_at":"2024-08-01T12:01:34.873Z","updated_at":"2026-02-23T17:01:31.508Z","avatar_url":"https://github.com/thenifemi.png","language":"Dart","readme":"# Flutter Polls\n\nCustomizable Polls for Flutter.\nSimple, easy to use and highly customizable.\n\n\u003cimg src=\"https://media.giphy.com/media/MtsvCKIWV2HJUkClHW/giphy.gif\" alt=\"flutter_polls\" width=\"400\" vspace=\"50\" style=\"justify-content: start; align-items: start; display: flex;\"\u003e\n\n[Flutter Polls on pub.dev](https://pub.dev/packages/flutter_polls)\n\n## Getting Started\n\nIn the `pubspec.yaml` of your flutter project, add the following dependency:\n\n```yaml\ndependencies:\n  ...\n  flutter_polls: ^0.1.6\n```\n\nImport it:\n\n```dart\nimport 'package:flutter_polls/flutter_polls.dart';\n```\n\n## Example\n\nCheck out the example project in the `example` directory here: [example on github](https://github.com/thenifemi/flutter_polls/tree/main/example)\n\n\u003cimg src=\"https://raw.githubusercontent.com/thenifemi/flutter_polls/main/example/example.png\" alt=\"flutter_polls\" width=\"400\" vspace=\"50\"/\u003e\n\n```dart\nFlutterPolls(\n    pollId: '1',\n    onVoted: (PollOption pollOption, int newTotalVotes) {\n      print('Voted: ${pollOption.id}');\n    },\n    pollOptionsSplashColor: Colors.white(),\n    votedProgressColor: Colors.greyDark().withOpacity(0.3),\n    votedBackgroundColor: Colors.grey().withOpacity(0.2),\n    votesTextStyle: themeData.textTheme.subtitle1,\n    votedPercentageTextStyle:\n        themeData.textTheme.headline4?.copyWith(\n    color: Colors.black(),\n    ),\n    votedCheckmark: Icon(\n        Icons.circle_check,\n        color: AppColors.black(),\n        height: 18,\n        width: 18,\n    ),\n    pollTitle: Align(\n    alignment: Alignment.centerLeft,\n    child: AutoSizeText(\n        poll['title'],\n        style: TextStyle(\n            fontSize: 20,\n        ),\n    ),\n    pollOptions: poll['options'].map(\n    (option) {\n        return PollOption(\n        id: option['id'],\n        title: AutoSizeText(\n            option['title'],\n            style: tTextStyle(\n            fontSize: 20,\n        ),\n        ),\n        votes: option['votes'],\n        );\n    },\n    ).toList(),\n    metaWidget: Row(\n    children: [\n        const SizedBox(width: 6),\n        AutoSizeText(\n        '•',\n        style: TextStyle(\n            fontSize: 20,\n        ),\n        ),\n        const SizedBox(\n        width: 6,\n        ),\n        AutoSizeText(\n        '2 weeks left',\n        style: TextStyle(\n            fontSize: 20,\n        ),\n        ),\n    ],\n    ),\n),\n```\n\n## Parameters\n\n| Parameter                    | Type                                                    | Description                                                                                         |\n| ---------------------------- |---------------------------------------------------------| --------------------------------------------------------------------------------------------------- |\n| pollId                       | String                                                  | The poll id.                                                                                        |\n| hasVoted                     | bool                                                    | Whether the user has voted.                                                                         |\n| userVotedOptionId            | String                                                  | The user voted option id. If the user hasn't voted, this will be null.                              |\n| onVoted                      | void Function(PollOption pollOption, int newTotalVotes) | The callback when the user voted.                                                                   |\n| pollTitle                    | Widget                                                  | The poll title. Can be any widget.                                                                  |\n| pollOptions                  | List\u003cPollOption\u003e                                        | The poll options. Each item is a map with the following keys: id, title, votes.                     |\n| heightBetweenTitleAndOptions | double                                                  | The height between the poll title and the poll options.                                             |\n| heightBetweenOptions         | double                                                  | The height between the poll options.                                                                |\n| votesText                    | String                                                  | Votes text. Can be \"Votes\", \"Votos\", \"Ibo\" or whatever language. If not specified, \"Votes\" is used. |\n| votesTextStyle               | TextStyle                                               | The style of the votes text.                                                                        |\n| metaWidget                   | Widget                                                  | The meta widget. Can be any widget.                                                                 |\n| createdBy                    | String                                                  | The poll creator.                                                                                   |\n| userToVote                   | String                                                  | The user to vote.                                                                                   |\n| pollStartDate                | DateTime                                                | The poll start date.                                                                                |\n| pollEnded                    | bool                                                    | If the poll is closed.                                                                              |\n| pollOptionsHeight            | double                                                  | The poll options height.                                                                            |\n| pollOptionsWidth             | double                                                  | The poll options width.                                                                             |\n| pollOptionsBorderRadius      | BorderRadius                                            | The poll options border radius.                                                                     |\n| pollOptionsBorder            | BoxBorder                                               | The poll options border.                                                                            |\n| pollOptionsFillColor         | Color                                                   | The poll options fill color.                                                                        |\n| pollOptionsSplashColor       | Color                                                   | The poll options splash color.                                                                      |\n| votedPollOptionsRadius       | Radius                                                  | The voted poll options border radius.                                                               |\n| votedBackgroundColor         | Color                                                   | The voted poll options background color.                                                            |\n| votedProgressColor           | Color                                                   | The voted poll options progress color.                                                              |\n| voteInProgressColor          | Color                                                   | The voted poll options background color when user has voted and its still in progress.              |\n| votedCheckmark               | Widget                                                  | The voted poll options checkmark.                                                                   |\n| votedPercentageTextStyle     | TextStyle                                               | The voted poll options percentage text style.                                                       |\n| votedAnimationDuration       | int                                                     | The voted poll options animation duration.                                                          |\n| loadingWidget                | Widget                                                  | The loading widget when a user votes. Can be any widget.                                            |\n","funding_links":[],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenifemi%2Fflutter_polls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenifemi%2Fflutter_polls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenifemi%2Fflutter_polls/lists"}