Are flies to that Eat mushrooms consumers or producers?

Consumers.

Flies that eat mushrooms are consumers because they get their energy from eating other organisms. They are heterotrophs, meaning that they cannot make their own food and must consume other organisms to obtain energy. In this case, the flies are consuming mushrooms, which are producers.