Transverse flutes made out of animal bones were used in Europe in the Paleolithic era. These instruments can certainly be regarded as the ancestor of the flute. However, it was not until the sixteenth century during the Renaissance period that the prototype of the flute that plays such a prominent role in the modern orchestra first emerged and came into widespread use.
Early flutes did not feature keys. Flutes in the Renaissance period were of extremely simple construction, consisting of a cylindrical body with an embouchure hole (mouthpiece) and seven finger holes. They could also only produce certain semitones. In the latter half of the seventeenth century, flutes with a conical body and a single key attached began to appear. With this mechanism, for the first time virtually all semitones could be played on the flute.
Theobald Boehm, the German wind instrument manufacturer, demonstrated a revolutionary new type of flute at the Paris Exhibition of 1847. This flute had a metal tube with numerous keys attached. With earlier flutes, it had been difficult to even get a note out of them, and the intervals between the notes had been variable. Boehm's instrument was a dramatic improvement, however, and overcame these shortcomings. With his major refinements, Boehm essentially created the modern-day flute.
📖Read more on Wikipedia