The successor to smart_select and chips_choice with cleaner, more flexible, and composable API for creating inline or prompted choice widgets with single or multiple selection.
Package selection guidance compiled from public package information, community data, and project usage.
Choice is a modern Flutter package designed for building flexible, composable choice widgets with support for both single and multiple selections. It replaces older packages like smart_select and chips_choice, offering a cleaner API for inline or prompted selection interfaces. Ideal for forms, filters, and tag-based inputs, it provides a consistent and customizable experience across platforms. The package emphasizes developer ergonomics and UI flexibility, making it easy to integrate into diverse app designs.
Use cases
Form inputs with selectable options
Filtering interfaces
Tag-based data entry
Dynamic choice lists
User preference selection
Multi-select dropdowns
Key features
Clean and intuitive API
Support for single and multiple selection
Flexible inline or prompted layouts
Highly customizable appearance
Cross-platform compatibility
Composable widget design
Suitable for
Developers seeking modern alternatives to legacy choice packages
Projects emphasizing UI consistency and maintainability
Teams prioritizing developer experience and code clarity
Applications with complex filtering or tagging needs
Considerations
Requires understanding of Flutter's widget composition
May need additional styling for complex themes
Limited documentation compared to mature packages
Best suited for apps with frequent user selections
Not ideal for simple static choices without interactivity
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
The successor to smart_select and chips_choice with cleaner, more flexible, and composable API for creating inline or prompted choice widgets with single or multiple selection.
Features
Cleaner, flexible, and composable API
Inline or prompted choice widget
Single or multiple choice widget
Searchable choice items with highlighted result
Specifies whether the choice selection needs to be confirmed
Use any type of choice data and load it easily, either synchronously or asynchronously
Build your own choice item that fits your needs
Groupable choice items that can be sorted
Supports leading and trailing choice items, as well as divider choice items
Use a predefined wrapped, scrollable, virtualized choice list, or build one that fits your needs
Use a predefined popup dialog, bottom sheet, new page prompt, or build one that fits your needs
Use a predefined modal header, footer, and separator, or build one that fits your needs
Use a predefined group list, group item, and group header, or build one that fits your needs
Use a predefined anchor widget or build one that fits your needs
Use a predefined widget on loading, on error, and placeholder when empty, or build one that fits your needs
By default, the choice controller maintains the selection state within a List. Any constructors other than those dedicated to single choice will have a List<T> for their value and onChanged prop. If we want to use a single value of T, we can use ChoiceSingle.value adapter to fill the value prop and ChoiceSingle.onChanged adapter to fill the onChanged prop.
Here is an example of how to use the ChoiceSingle.value and ChoiceSingle.onChanged adapters
:x: Sortable choice items better to do this outside
:black_square_button: Add scroll wheel list
:black_square_button: Add dropdown choice widget
:black_square_button: Add chainable choice widget
Sponsoring
If this package or any other package I created is helping you, please consider to sponsor me so that I can take time to read the issues, fix bugs, merge pull requests and add features to these packages.