Catalyzes the phosphorylation of riboflavin to FMN followed by the adenylation of FMN to FAD. ATP + riboflavin = ADP + FMN + H(+) ATP + FMN + H(+) = diphosphate + FAD Cofactor biosynthesis; FAD biosynthesis; FAD from FMN: step 1/1. Cofactor biosynthesis; FMN biosynthesis; FMN from riboflavin (ATP route): step 1/1. Belongs to the RibF family. This sequence is divergent compared to other bacterial RibF.