I would like to get a flat stomach…?

I’m really thin and am trying to put on a little weight, but it all goes to my stomach. It’s weird, then only fat I have on my body is on my stomach. How can I get a flat ‘tummy’ while still putting on weight else where.
Currently I do 30 minutes of cardio and some weight training.