It is true that it is the theobromide in chocolate that is bad for dogs. Dark chocolate and bakers chocolate have higher amounts than milk chocolate (about 8x), and white chocolate contains very little theobromide so not usually toxic.
See the ASPCA poison list for additional substances that are poisonous to pets:
ASPCA | People Foods to Avoid Feeding Your Pets