How much did your weight gain affect baby’s weight?

Je

I know the more weight you gain during pregnancy, the more likely you are to have a large baby. But I’m wondering how drs determine ahead of time. I was 180lbs when I got pregnant and now I’m 194 at 30 weeks. Just wondering how it affected others.