double getAnimatedLeft(double percent){ final diff = targetLeft - left!; final ratio = diff * percent; return targetLeft - (diff - ratio); }