Eating habits affecting flow?

I know a lot of things you do affect your period and how heavy or light it is. My question is.. how much do your eating habits actually affect it?