Skip to content
pubscout

flutter_polls

0.1.6, released 3 years ago by thenifemi.com

Customizable polls widget for Flutter applications.

WASM-ready
$ flutter pub add flutter_polls
Source repository

What it does

Provides a customizable widget for displaying polls and collecting user votes with animated progress bars, options, and callbacks.

AI-written summary of version 0.1.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display a poll widget inside a Flutter application.
  • You want custom styling for poll options, voted states, and progress indicators.

Skip it when

  • You require a full backend polling infrastructure out-of-the-box.

Strengths

  • Highly customizable UI elements and parameters.
  • Built-in support for animation and progress indicators via percent_indicator.

Weaknesses

  • Limited to rendering the UI and handling basic vote callbacks; backend logic must be implemented separately.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
FlutterPolls(
    pollId: '1',
    onVoted: (PollOption pollOption, int newTotalVotes) {
      print('Voted: ${pollOption.id}');
    },
    pollTitle: Text('Poll Title'),
    pollOptions: [
      PollOption(id: '1', title: Text('Option A'), votes: 5),
      PollOption(id: '2', title: Text('Option B'), votes: 10),
    ],
)

Alternatives

Packages that do the same job and could replace flutter_polls.

Works with

Packages commonly used together with flutter_polls: ones it builds on, ones built on it, and its own family.