The following parameters have been deprecated. They have been moved to ExpandableThemeData:
ExpandableController.animationDurationExpandable.crossFadePoint,Expandable.fadeCurve,Expandable.sizeCurve,Expandable.alignment,Expandable.alignment,ExpandablePanel.hasIcon,ExpandablePanel.iconPlacement,ExpandablePanel.iconColor,ExpandablePanel.headerAlignment,ExpandablePanel.tapHeaderToExpand,ExpandablePanel.tapBodyToCollapse,ExpandableIcon.color,ScrollOnExpand.scrollAnimationDuration,
The following breaking API changes have been made in version 3.0:
-
The parameter
animationDurationhas been moved fromExpandabletoExpandableController. This was done in order to simplify combining multipleExpandablewidgets and to makeanimationDurationavailable toScrollOnExpand. -
The parameter
initialExpandedhas been removed fromExpandablePanel. If you need to make anExpandablePanelexpanded initially, wrap it with anExpandableNotifieror pass anExpandableController. -
The constructor of
ExpandableControlleraccepts named parameters. Provide the initial value by callingExpandableController(initialExpanded: myValue).
When Expandable was initially created, it was using Scoped Model plugin
for communicating state changes. In version 2.0.0 the dependency on ScopedModel was eliminated.
This is a breaking change, so a code change is necessary to make the code work. The migration is mainly a search/replace:
ScopedModel<ExpandableModel>->ExpandableNotifierExpandableModel->ExpandableControllerScopedModel.of<ExpandableModel>->ExpandableController.of