We're currently developing an app using flutterflow for our class, but we've gotten stuck with connecting our firebase, which contains the questions, with the textbox in flutterflow. We want the textbox to display one question each time and only changes once an answer has been selected. These questions are polar questions about a symptom of a disease, thus only having two options to be selected as answers, which are yes or no. We also haven't figured out how to make the yes or no buttons work. It should be able to store the user's answer and change to the next question once an answer has been selected. After a certain amount of questions, the crop disease will be identified and will be shown as the result in the end. We're trying to implement decision tree logic for identifying the crop disease for the result. Your help would be greatly appreciated, thank you!
Image of how it looks right now:
