The following parameters have been deprecated. They have been moved to ExpandableThemeData
:
ExpandableController.animationDuration
Expandable.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
animationDuration
has been moved fromExpandable
toExpandableController
. This was done in order to simplify combining multipleExpandable
widgets and to makeanimationDuration
available toScrollOnExpand
. -
The parameter
initialExpanded
has been removed fromExpandablePanel
. If you need to make anExpandablePanel
expanded initially, wrap it with anExpandableNotifier
or pass anExpandableController
. -
The constructor of
ExpandableController
accepts 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>
->ExpandableNotifier
ExpandableModel
->ExpandableController
ScopedModel.of<ExpandableModel>
->ExpandableController.of