simple_polls
3.0.0, released 9 days ago by abrah.am
A Flutter widget for creating localized polls with Material 3 styling.
WASM-readyUses material_ui
What it does
Provides a fully controlled poll UI that displays options, voting results, and countdown timers. Supports multiple languages via built‑in locales and custom labels. Uses Material 3 Expressive design by default.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- you need a ready‑made poll interface in a Flutter app
- you want built‑in localization for poll labels and time remaining
- you prefer an immutable, declarative widget API
Skip it when
- you require complex backend voting logic integrated in the widget
- you need custom charting or non‑poll UI components
- your app runs on Flutter versions older than 3.47
Strengths
- built‑in multilingual support
- Material 3 Expressive look with easy style overrides
- immutable, fully controlled API reduces side effects
Weaknesses
- only provides poll UI, no networking or data persistence
- requires Flutter 3.47+ and the material_ui package
- limited customization beyond provided style options
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Poll<int>? poll = Poll(
title: 'Sample poll',
endsAt: DateTime.now().toUtc().add(Duration(days: 5)),
isEditable: true,
options: [
PollOption(id: 1, label: 'Option 1', voteCount: 10),
PollOption(id: 2, label: 'Option 2', voteCount: 20),
],
);
PollVote<int>? vote;
SimplePoll<int>(
poll: poll,
vote: vote,
onVoteChanged: (newVote) {
poll = poll!.withVoteApplied(previousVote: vote, newVote: newVote);
vote = newVote;
},
);Alternatives
Packages that do the same job and could replace simple_polls.
- flutter_polls
Customizable polls widget for Flutter applications.
50Compare
Works with
Packages commonly used together with simple_polls: ones it builds on, ones built on it, and its own family.