'Dear + name' is the standard formula for beginning letters and emails.
'Name + dear' isn't an accepted written form at all. It's sometimes used as an affectionate term of address in speaking, usually by grandmothers and elderly aunts! If a young person says it, it's often used as a joke.
Of course, between friends, in informal situations, you can address people in any way you want. But please be aware that 'Name + dear' is not a standard way of beginning a correspondence.