Jennifer Garner and Ben Affleck are "die-hard committed to co-parenting."

Ben Affleck and Jennifer Garner

Ben Affleck and Jennifer Garner

The 44-year-old actress, who split from the Oscar-winning director in 2015 after 10 years of marriage, is gearing up to file for divorce, but they plan to continue to stay close friends for the sake of their three children, Violet, 11, Seraphina, eight and Samuel, four.

A source close to the former couple said: "They have maintained such a strong and beautiful united front to stay lovely and classy towards each other for their kids. They spend so much time working on their relationship -- whether it's a friendship or anything -- for their kids."

The pair are frequently spotted together sparking rumours they were trying to repair their relationship, but "not one thing has changed" since they announced their separation even though they still have "so much love and respect for one another."

The insider also told 'Entertainment Tonight': "Their friendship is there. They are so die-hard committed to co-parenting. Whatever form this relationship is, they'll always have love for each other, and the love they have for their kids is so strong, they won't let anything bring that down.

"They both have done things they're not proud of and in no way was Ben a shining husband, but there are a lot of things that go into a marriage and a split. They put together their plans and goals, in terms of their friendship and their relationship, and they're doing just that. Whatever this new normal that they created for their family is, they're doing it."