There is no difference
Both are considered correct
Both function as the tense and past participle of the verb dream
The only difference is:
‘dreamed’ is preferred in all main varieties of English
‘dreamt’ is especially common in British English
This site should give more information on when to use either word