Jennifer Garner
Jennifer Garner is single after splitting from Ben Affleck Reuters

Jennifer Garner is allegedly flirting with Josh Duhamel to make Ben Affleck jealous. The 45-year-old actress reportedly got close to the Safe Haven actor during the filming of Nick Robinson's coming-of-age film"Simon vs. The Homo Sapiens Agenda.

According to National Enquirer, Garner has started "ramping up her flirting with Josh" because she "gets a thrill out of making Ben jealous."

The source said: "Josh is exactly what Jen needs right now. He is making her see things in a whole new light."

The insider said that Affleck is "insanely jealous, because Josh is even better looking than he is."

This report comes after Garner and Affleck filed for divorce this month, nearly two years after announcing their separation.

The flirting report is hard to believe as Duhamel is happily married to Black Eyed Peas' singer Fergie.

Meanwhile, in an interview with Vanity Fair, Garner revealed details about her split with Affleck. She told the publication: "I didn't marry the big fat movie star; I married him. And I would go back and remake that decision. I ran down the beach to him, and I would again. You can't have these three babies and so much of what we had. He's the love of my life. What am I going to do about that? He's the most brilliant person in any room, the most charismatic, the most generous. He's just a complicated guy. I always say, 'When his sun shines on you, you feel it.' But when the sun is shining elsewhere, it's cold. He can cast quite a shadow."

"It was a real marriage. It wasn't for the cameras. And it was a huge priority for me to stay in it. And that did not work," she added.