cupertino_radio_choice
1.0.2, released 5 years ago by rothech.com
Cupertino buttons used as radio buttons for selecting a single value.
What it does
Provides a Cupertino-styled radio choice widget that allows users to select a single value from a map of choices. It takes a set of choices, an initial key value, and an onChange callback to handle selections.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Cupertino-styled app and need single-selection radio buttons.
- You want a simple widget to map key-value pairs into selectable options.
Skip it when
- You need Material Design radio buttons.
- You need complex form validation or custom field builders.
Strengths
- Simple API with required parameters for choices and change callbacks.
- Native Cupertino look and feel.
Weaknesses
- Very narrow scope, limited to a single widget function.
- Lacks built-in form validation support.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
CupertinoRadioChoice(
choices: {'male' : 'Male', 'female' : 'Female', 'other': 'Other'},
onChange: (selectedGender) {},
initialKeyValue: 'male')Alternatives
Packages that do the same job and could replace cupertino_radio_choice.
- country_picker
A Flutter widget to pick a country from a list with optional phone code and search.
78Compare - adaptive_liquid_glass
Provides iOS‑style Liquid Glass widgets with Material 3 fallbacks for Android.
65Compare - flutter_radio_slider
A stepped slider implementation using radio buttons for Flutter.
48Compare - scroll_spy
Detect visible items and select one stable primary item in Flutter scrollables.
67Compare