What does it matter if he's coming onto you or not??
He's not single.
I agree with the other posters that he dropped the wife info. in to see if you were up for it, in spite of knowing that he's married.
Men who act like this are rarely isolated in their behaviour.
You're single - he's a waste of your time. Most married men don't leave their wives for bits on the side, you'll just be left crying.
And in the extremely unlikely situation that he did leave, you'd just have gotten a cheater as a partner.
Look after yourself and try to meet a single man. Also get more social contacts ..... It's not good to not have enough contact with other ppl. Makes you more vulnerable to situations like this.
He's just a red herring and time waster. In fact men like this just remind me of that song that's being played everywhere ATM; "dream crusher, blood sucker". Theyre predators and you are prey. They'll just waste your time and emotion, leave you feeling used, fooled, and low value.
They're usually wrapped up in a nice sexy package, of course; wouldn't get the opportunities with women if they weren't.
Forget about that, there are other men you could be attracted to out there, who aren't flirting, inappropriate married cheaters.