It is typically recommended to install the tub before the flooring. This allows you to seal the tub properly, helping avoid future leaks. It also makes it easier to install the plumbing and electrical lines for the tub.