how to get WidgetState->Radiobutton->"value" (not the "text value") in the page? When using built-in translations? #RadioButtonID, #CustomCode, #FFLocalizations

I use translations (built-in Settings->Languages) for the radio text label strings, i.e. 5="Strongly Agree", 4="Agree", etc. Integer values correspond to string values, which are translated for each user (language) base. When a user selects "Strongly Agree" (in any language) that should correspond to 5.

Within Flutterflow I find available the WidgetState->Radiobutton->Value which is the string (label). This string label changes with the language. Therefore I write a custom function to map 5:['Strongly Agree','Strongly Agree2','Strongly Agree3', etc.] for each language translation (already a lot of work).

However, when a support developer improves or adds a translation, then the custom function code will break.

Therefore, how to (either):
(i) get the WidgetState->Radiobutton->"value" (i.e. index or integer value)? (On the community pages, it looks like a past solution was to use ListView->"Dynamically Generate Children", which is to rewrite the radiobutton functionality)
(ii) get the translation dictionary and the relevant context, from within custom function code? i.e. something like...
```
FFLocalizations.of(context).getText(
'vrvqxwj3' /* xxxxxxxxxx */,
),
```

Thanks in advance..

8
6 replies