My child ate a dandelion flower. Could this be dangerous?

Not a problem. No toxins are present in dandelion flowers. Dandelion leaves are used by some as additional leaves in salads.
Probably Not. Most likely not, but check with your local poison control center asap.