PageView with Dynamic Children with Component with RichTextField

Widgets & Design

I am running into an issue accessing the data of my RichTextField that is part of a Component in a Dynamic PageView.

PageView Definition
As you can see my PageView is in a Container which performs the database query for the prompts. Within the PageView I have a simple Column that contains the PromptCard Component.

The "Next" button allows the user to navigate the list of PageViews one at a time. They are only allowed to move forward after completing the "Save" response associated with the component.

PromptCard Definition
Within the PromptCard Component, I have a RichText Field and a button. The "Save" button writes the textfield value to a local parameter and toggles an AppState param.

What have you tried so far?

Debug View
Below is a view of the debug panel. Using the "Next" button does allow me to navigate through the entire list of PageViews. What's not working as expected is the "Dynamically Generated PromptCards" list never contains more than "PromptCard[0]".

Based on the documentation I expect their to be a PromptCard created for each of the prompts from the original database query.

One thing to mention is that not all PageViews will display this PromptCard component. This is conditionally displayed for only "Questions" that I want to prompt the user for.

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