One of the meanings given in the OED:
A flap is:
Something attached by the edge. Cf. flap
A strip or lap on a garment, to contain or cover the button-holes; hence something used to cover or connect (see quot. 1884). spec. (freq. pl.) the piece of cloth that hides the fastening at the front of a pair of trousers; also, the fastening itself.