As you may assume from what you've seen in the past, when you and your partner can get along, even during a divorce, your children are going to fare better. Children are struggling with many things when going through a divorce including changes to their routines, coping with the loss of the structured family unit and more. If fighting is added on top of this, children are going to have a difficult time adjusting.
Divorce is a difficult time for both spouses who have to make adjustments to every aspect of their lives. When you add kids into the situation, everything becomes more difficult. Not only are you dealing with the logistical matters, but you also have to think about the emotional challenges.