Getting toddler to eat

Tara • Have two beautiful children
I swear sometimes getting my toddler to eat is like pulling teeth. She wants to snack like all day. I make dinner for her and she will hardly eat it but if I give her fruit snacks or granola bars she is totally happy. I don't get it :( what can I do?
**i am adding that I do not give her fruit snacks and granola bars all the time, just using these as examples**