You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not clear how to add a text label on a radio button #6678
Feels a bit similar to #254. We have a bunch of issues around forms which @mpcomplete is processing through for customer: leafy. This may already be on his list via another bug, not sure.
That doesn't quite work, as pressing the text then doesn't do anything (the radio and text are supposed to be one big button in terms of selection).
Reacted by Quentin Comte-Gaz, hersveit, trietbui85, Linus Unnebäck, Jakub Trzebiatowski, Amr ahmed, Robouste, Andrei Kabylin, timvanginderen, Corey Cole and 11 more
I solved this by using a Text widget in the same row and surrounding the Text widget with a GestureHandler, which invokes the setState(){}, method, which updates the enum value for the switch.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
eseidelGoogle commentedon Nov 3, 2016
Feels a bit similar to #254. We have a bunch of issues around forms which @mpcomplete is processing through for customer: leafy. This may already be on his list via another bug, not sure.
nelsonkam commentedon Nov 3, 2016
On flutter, you can do this:
new Row(children: [new Radio(...), new Text("Radio Label"),])Also works for checkboxes.
mit-mit commentedon Nov 3, 2016
That doesn't quite work, as pressing the text then doesn't do anything (the radio and text are supposed to be one big button in terms of selection).
nelsonkam commentedon Nov 3, 2016
@mit-mit Yeah, I understand your point here.
mpcomplete commentedon Nov 3, 2016
Yeah, this is #254.
Default locales test for flutter tester. Roll engine 162b2e9..7be0217 (…
Default locales test for flutter tester. Roll engine 162b2e9..7be0217 (…
kras95 commentedon Dec 24, 2019
I solved this by using a Text widget in the same row and surrounding the Text widget with a GestureHandler, which invokes the setState(){}, method, which updates the enum value for the switch.
github-actions commentedon Aug 24, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.