We demonstrate a passively Q-switched ytterbium-doped fiber laser based on black phosphorus (BP) flakes covered microfiber. The BP saturable absorber is fabricated by sandwiching a microfiber between two pieces of polydimethylsiloxane supported BP flakes film, which is prepared by the mechanical exfoliation method. In this case the BP flakes can be well protected from the action of air and moisture. By incorporating BP flakes covered microfiber into a ytterbium-doped ring fiber laser, stable and reliable Q-switched operation at 1064 nm can be realized via interaction between few-layers BP flakes and the evanescent field of the laser. The laser allows Q-switched pulse generation with a repetition rate in the range of 26-76 kHz and a pulse duration in the range of 5.5-2.0 μs, by varying the pump power from 38 mW to 100 mW.