The largest flying creatures were pterosaurs. They, in turn, are reptiles or tetrapods, which makes them similar to dinosaurs and their modern representatives: crocodiles, lizards, and snakes.
Current understanding has pterosaurs as avemetatarsalians, just like dinosaurs and birds, and unlike crocodiles, lizards, and snakes.