M Al-Haroon
·Managing director at Payspin

RadioButton with Generated Children from a variable

Widgets & Design

Hello FlutterFlow community,

I was facing an issue with properly connecting radio buttons to dynamic children. In the image I provided:

  1. I first converted the radio button into a component to avoid errors.

  2. Then, I attempted to connect each radio button (within the generated children) to its corresponding index in a Boolean list called isSelected.

The idea is that when a radio button is selected, the corresponding index in the isSelected list is set to true, and all other indexes are set to false. However, I’m trying to ensure that the radio button visually reflects this behavior—so that it appears selected only when its corresponding isSelected[index] is true.

How can I achieve this binding correctly?
Also, in the component properties, there is something called "Unique Key." What is it used for?

What have you tried so far?

I have tried to connect the isSelected list with the Unique Key but I don't think it gave me the correct behavior of radio buttons

Did you check FlutterFlow's Documentation for this topic?
Yes
3