Mrs Chapman agreed with the defence that Ms Lorigan didn't look after Leilani and another daughter she had with Martin "the way a mother should".
Leilani also "stunk so bad" because her clothes were never washed. Martin and Ms Lorigan, who had been together since early 2011, did not own a washing machine and their home reeked of urine, Mrs Chapman said.
Leilani was pronounced dead shortly before 6am on June 10, 2012, when paramedics were unable to save her.
The day before, Martin and Ms Lorigan were looking after the little girl but she was alone with Martin for about an hour when Ms Lorigan went grocery shopping.
It was then, the Crown says, that Martin administered a "violent assault" akin to a kick from a horse against his stepdaughter, who he resented.
Expert evidence would suggest the girl was in great pain but would have survived if she received prompt treatment, Crown prosecutor Christine Gordon, QC, said in her opening statement.
When Ms Lorigan arrived home, Martin told her their relationship with over. He did not tell her what he would later tell police that Leilani had fallen off a chair.
This was his attempt to explain Leilani's injuries, Ms Gordon said.
She said Martin "misled" police about his feelings for Leilani and the state of his relationship with Ms Lorigan.
"Amy Lorigan loved her daughter Leilani. The accused, however, struggled to accept a child that wasn't his and was going to leave."
Mrs Smith said Martin did not injure Leilani and did not see anything happen to the little girl.
"He has no history of child violence. No one has seen him smack Leilani or even smack a child. The bottom line is there's no evidence whatsoever that Michael Martin was responsible for Leilani's injuries.
Mrs Smith said Ms Lorigan did not seek medical help for Leilani when she vomited throughout the afternoon of June 9, 2012, and was heard by a neighbour shouting at her.
Martin has also pleaded not guilty to a charge of child neglect for failing to provide Leilani with medical assistance.
The trial, before Justice Graham Lang, is expected to last about three weeks. The Crown is due to call 35 witnesses.