Retrieving specific item in app state list

Database & APIs
Resolved

I'm making a multiple choice quiz app and am trying to get persistence of user answers. Users pick one of the answer choices and go to the next question using page state variables and firebase queries. When they return to a previously answered question, I want the user answer to be displayed.

I'm able to store user answers in an app state list of datatype "Answer schema" which contains the answertext and the question reference. However, I'm unable to filter the list based on the question reference to retrieve the corresponding answer text. Am I going about this the wrong way?

What have you tried so far?

I've tried filtering the list, like I do for firebase queries.

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