I get this as well and its definately linked to anxiety.... I can completely not fancy food, if I am at high level anxiety and sometime will go all day without eating anything and not feeling hungry.

Other times I am hungry and then I sit down to eat and dont fancy it... especially if I am eating around people.....