estimatedPageSize property

double estimatedPageSize
final

The estimated size of displayed pages.

This property can be used to indicate how big a page will be more or less. By default (0.0) all pages will have their initial sizes set to 0.0 until they report that their size changed, which will result in ExpandablePageView size animation. This can lead to a behaviour when after changing the page, ExpandablePageView will first shrink to 0.0 and then animate to the size of the page.

For example: If there is certainty that most pages displayed by ExpandablePageView will vary from 200 to 600 in size, then estimatedPageSize could be set to some value in that range, to at least partially remove the "shrink and expand" effect.

Setting it to a value much bigger than most pages' sizes might result in a reversed - "expand and shrink" - effect.

Implementation

final double estimatedPageSize;