Toddler won’t eat anything

Help has anyone else gone through this? My 2 year old suddenly went from a great eater to literally eating nothing (literally one granola bar a day and just milk) we have seen the doctor and all they said was to give pediasure.