Catalyzes the adenylation of flavin mononucleotide (FMN) to form flavin adenine dinucleotide (FAD) coenzyme (PubMed:27672192). Can also catalyze, with lower efficiency, the adenylation of the toxic riboflavin analogs 8-demethyl-8-aminoriboflavin mononucleotide (AFMN) and roseoflavin mononucleotide (RoFMN) to 8-demethyl-8-aminoriboflavin adenine dinucleotide (AFAD) and roseoflavin adenine dinucleotide (RoFAD), respectively (PubMed:27672192). ATP + FMN + H(+) = diphosphate + FAD kcat is 0.51 sec(-1). Cofactor biosynthesis; FAD biosynthesis; FAD from FMN: step 1/1. Belongs to the RibF family.