flowImitatingIndicator function
Implementation
Widget flowImitatingIndicator(double progress, double opacity) {
return Opacity(
opacity: opacity,
child: RelativelyPositioned(
positionCalculator: (size) => Offset(
calculateMovingLeftOffset(
sourceIndex: 1,
targetIndex: 2,
progress: progress,
totalWidth: size.width
),
size.height - 3
),
child: Indicator(),
),
);
}