Accessing widget state of a component's widgets

Widgets & Design

Hello,

described in this article:
https://docs.flutterflow.io/widgets-and-components/custom-components

I should be able to use a widget state outside of a component... but I'm not.

Context:

I am using a pageview carousel, to do a questionaire with the app user.

I implemented a button which the app user can use to go to the next page.

The pages are generated via a backend query which pulls the questions from a firestore collection.

In the page I have a component which has a "YES" & "NO" with a switch widget.

The app user can answer the question via hitting the switch widget and select YES or NO.

I would like to do an action with the previous mentioned button, to go to the next page and also take the switch widget state and save it in a collection to save the app users answer in combination to the question.

But I can't select the widget state as it is not shown in the variable selection option..

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