Denise Jackman, who is prosecuting Ms Smith, said that officers found the body of the dog after it died living in squalor, deprived of food and water.
The dog, named Rocky, had become so desperate for food he chewed empty tins of dog food he had found on the floor.
Ms Jackman said: “The officer found a deceased, white Staffordshire bull terrier lying on the kitchen floor among a vast amount of rubbish.
“There were faeces all over the floor. There was an empty water bowl and tins of food with dints in it, as if the dog had attempted to open the tin with his teeth.”
Ms Smith, 23, has pleaded guilty to one charge of causing an animal unnecessary suffering between February 5 and March 26 this year.
A vet examined the remains of the dog, and he was found to be 7kg underweight- nearly half a healthy dog’s weight.
Ms Jackman told a court: “The vet said the unnecessary suffering of starvation would have caused immense stress. The hunger would have caused loss of consciousness before death occurred.”
David Parish, mitigating, said: “This is a lady with significant difficulties and significant mental health problems. She was the victim of domestic violence, which occurred where the dog was found.
"She was not able to cope and felt she couldn’t return to the property. She is deeply sorry, deeply upset and deeply ashamed at what has happened.”
If you are concerned for the welfare of any animals, please contact the RSPCA (or if you're in Scotland, contact theSSPCA)