Feathers seem to have evolved much earlier than the first birds , for insulation rather than flight, and were widespread among dinosaurs.