Flutterflow quiz score logic

Actions & Logic

Hello! I have made a quiz in flutterflow and i cant implement the scoring system. Let me give you the details of what I've made:

1) created a component with 2 parameters: question and options(radio buttons)

2) on a page i added the component and parameters connected tbem with supabase to have dynamic children

3) the questions are on the same page so 10 questions on the page. If i add widgetstate==correct +1 if not +0 then if the user changes his answer from correct to wrong then the score wont get-1. What should I do?

Secondy when I try to get value from the widget state outside of the component i get a totally different screen and nothing works. If someone is kind enough to explain me what are the options in access type it would be great! I was trying to get the value from the widget and I cant make it work.

What have you tried so far?

booleans in the logic, tryed to insert the widget state in an app state using an idenitifer but didnt find anything

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