What is the pre-existing problem this Pull Request is trying to solve?
Currently, it's not possible to have two Accordions in the widget tree without causing errors and unwanted behaviour (e.g. two Accordions expanding when one is clicked).
This is due to the fact multiple Accordions use the same ListController instance stored by GetX.
What is the pre-existing problem this Pull Request is trying to solve?
Currently, it's not possible to have two
Accordion
s in the widget tree without causing errors and unwanted behaviour (e.g. twoAccordion
s expanding when one is clicked). This is due to the fact multipleAccordion
s use the sameListController
instance stored by GetX.The problem was originally raised in the following issue: https://github.com/GotJimmy/accordion/issues/20
This PR introduces the following changes
Accordion
instance now has its ownListController
instance in GetX, tagged with theAccordion
s hashCodeAccordion
hashCode to be passed into its childAccordionSection
s