progress property

double progress
final

The offset ratio of the swipeable in its parent container.

A value of 0.0 represents the normal position and 1.0 means the child is completely outside its parent.

This can be used to synchronize other elements to what the swipeable is doing on screen, e.g. using this value to set the opacity thereby fading swipeable as it's dragged offscreen.

Implementation

final double progress;