Canon EOS Rebel G - Dark pictures with Flash only

I have a Canon EOS Rebel G 35 mm SLR camera. It used to take beautiful pictures in daylight and indoor with the popup flash. Over the last 2 months all my indoor pictures with the flash are DARK (all over). Outdoor pictures are OK. I've never dropped the camera. I replaced the batteries with no luck.