My app has a screen that is composed of several buttons and text labels which are conditionally visible based on the selection of the buttons (for example, a yes/no radio button asking whether you were exposed to a covid-positive individual, which would cause another radio button asking whether the encounter lasted more than 15 minutes to be displayed).
- I know that stateless widgets for screens are preferable due to their improved performance, so I am trying to keep the screen widget stateless
- The radio buttons in the example are actually custom statefull widgets wrapping a ToggleButton, so I would have the condition (controlling the visibility of widget) to flow between the main stateless widget and the statefull child widgets (with the toggle buttons)