Shahxad-Akram / flutter_tex

A Flutter Package to render Mathematics, Physics and Chemistry Equations based on LaTeX
https://pub.dartlang.org/packages/flutter_tex
Other
279 stars 136 forks source link

TeXViewGroup how to clear the selected option or initialise the selected option if the user is revisiting the question #142

Open arth17singh opened 1 year ago

arth17singh commented 1 year ago

Question: Are you using the latest version of flutter_tex package? pub package Answer:Yes

Question: If you are looking for a feature, have you watched the Demo Video and gone through the examples folder? Answer:Yes In TeXViewGroup how can I deselect the question, there is an option to deselect the option in TeXViewGroup.multipleSelection but in single mode how can the user deselect the selected option. Further if the user revisits the attempted question, the marked option is deselected again. Is there a function present which enables us to initialise and select the option when loading a previously attempted questions and apply the selectedItemStyle on that particular option.

I have tried setting `selectedOptionId = "" ; but it doesn't refresh the style accordingly. If the user revisits a question, we can store the responses in the list and when a previously attempted question is opened there should be an option to take the selected items from the list. How can we achieve this functionality?

arth17singh commented 1 year ago

like if the user re-visits the question the response is cleared

arth17singh commented 1 year ago

there should be a clearSelectedOption() and setSelectedOption()method which is in the code so that it can be called by the flutter function to change the options with more flexibility