I just don’t care anymore

Me and my boyfriend have been together for almost 2 years (broke up once). Right now I have this IDC mentality towards him. Because previously when I cared and gave him all my love and attention shit always happened either he was flirting with other girls or he says I’m too clingy and I need to give him space. So now that’s what I do . I don’t be all up on him I don’t kiss him anymore cuddle or any of that anymore . When I come over he’s on the game and I’m on my phone and when I have a issue with him I keep it to myself because before he never listened and complained I’m being childish so now I don’t say anything. I love him but I just don’t care anymore and he’s starting to notice it and he wants attention now. He wants me on him, kissing him and asking him if he’s okay. But it’s hard to ‘let my guard down’ . I’m just scared because once I start doing the things I use to do I just know something bad will happen. I JUST DONT KNOW WHAT TO DO.