I feel like my daughter is unhappy

Sometimes when she gets dropped off at my house, she will cry and say she doesn’t want to go in my house, she wants to stay with whoever she’s with or she wants to go to the park or something. Sometimes she cries and says she wants to go home when she’s already home.

I think she hates me or something. Me and her father broke up a year ago. He lives with his parents in a nice house and I moved into a small apartment. she was fine up until recently.

Like is my apartment not good enough for her? She has plenty of toys but she is never interested in them. She has arts and crafts which barely hold her attention. She just wants to go for walks outside or do anything NOT in the apartment unless it’s watch TV.

I feel like a failure of a mother. At the same time sometimes when I bring her to her dads she doesn’t want to go. So maybe it’s just the back and forth she doesn’t like. But that can’t really change ever because we both need to see her. I don’t know what to do. Maybe once I move into a better place she will be happy. I feel like im better off dead if my own daughter doesn’t even want to be at my house or be with me half the time.