1.5 year old hardly eats dinner lately. What should I do?

He will just throw it on the floor unless it’s pasta (he loves pasta) or a purée pack...it’s so frustrating because I get worried that he’s starving himself so I give him something he likes.

But then again its not good because it teaches him I can scream, cry, and throw my food and then get whatever I want. AND stresses me because I have to revolve my dinners around what I think he will eat...

What do you guys do in this situation?