flowImitatingIndicator function

Widget flowImitatingIndicator(
  1. double progress,
  2. double opacity
)

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(),
    ),
  );
}