To dream of candy represents something that feels good to think about. Enjoyment or self-indulgence. You may be feeling joy or experiencing a special treat. A pleasurable experience you are having.
Candy may also reflect you enjoying yourself thinking of plans you have for the future.
Example: A girl dreamed of eating candy. In waking life she was enjoying herself getting closer to a boy she liked. The candy reflected how good she felt talking to the boy.