Skip to content
pubscout

cupertino_radio_choice

1.0.2, released 5 years ago by rothech.com

Cupertino buttons used as radio buttons for selecting a single value.

WASM-ready
$ flutter pub add cupertino_radio_choice
Source repository

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.