If Dream Fighter is assigned to block a creature with Flanking, the Flanking ability and the Dream Fighter ability both trigger. The active player’s Flanking effect is put on the stack first and resolves after the Dream Fighter’s phasing out effect happen, so the Flanking does nothing.

Artwork
Loading artwork…
Dream Fighter
Mirage · #63 · EN
Nonfoil—Foil—
Card rules
Whenever this creature blocks or becomes blocked by a creature, this creature and that creature phase out. (While they're phased out, they're treated as though they don't exist. Each one phases in before its controller untaps during their next untap step.)
1/1
Not only the sleeping should fear dreams.
Common · Illustrated by Drew Tucker
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
PreDH Legal
Premodern Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Dream Fighter affects all creatures that end up blocking it, including ones that are members of bands.