Hi, please excuse my very long response. I am not known for my succinctness
I hope that my experiences may be helpful to you. I am just a mom and certainly am not an expert on pretty much anything (unless you need a website built, but....).
My daughter was also distracted at that age and at seven and into her eighth year. I wouldn't necessarily use the word unmotivated because she has always really wanted to do well and has an incredible passion for her sport. But she was easily distracted and seeing the benefit of every turn being perfect even if the coach wasn't watching and not just checking the boxes but performing her best on each repetition whether drill or skill or conditioning took some time to kick in. This is totally normal I think. Connecting the boring work to the results is a complex subject that takes a bit for kids to figure out.
It slowed her progress early on significantly, but we were very lucky that her coaches saw her potential and kept working on basics and shapes and progressions and drills and kept going with the details and biding their time until she matured. Well, she is now newly nine and will likely skip through a couple of levels this year because her progress has exploded because it finally all started to click for her and she had the foundation there to push her progress very fast once she was ready.
It has been very frustrating for everyone, her, me, her coaches but well worth the work and the wait. For her, the key was to help her discover what motivated her internally. I'm not talking rewards, but what makes her want to work hard and get better. If she is really committed to the sport she will figure that out and you can help by talking with her and really learning what makes her tick. For my dd it was extra attention and positive feedback that does it for her. Luckily for her at our gym this is how it works. If you work hard and make the corrections then you get to progress and get more personalized attention from the coaches. It works well for her. I believe a good gym philosophy match is critical to the success of a gymnast.
We talked and talked and talked about how important it is to try on every turn, that all the little details are what is going to make you perform better and get stronger so you can get the higher skills. We made it very clear that until she figured out how to pay attention to the details and make the corrections that her coaches couldn't move her forward. She had to want it for herself and do the work for herself, no one was going to do it for her. And once she did that her coaches would see that and reward her with attention and new skills.
This had nothing to do with her not loving gymnastics. Not once has she ever not wanted to go and like your dd she would roll into a ball screaming if I threatened to take it away. Pulling her out for a month would have killed her, it simply wasn't an option.
I don't know your daughter or her motivations but from what you have said it sounds like your dd just needs to stick with it and work it out for herself. And hopefully the gym will stick with her until she gets there. She is very young, there is lots of time.
One thing I noticed is that my dd is an easily distracted person (at gym, at home, at school) and her room, desk and school work work really unorganized as well. As she worked through all this and got better at gymnastics I saw improvement in other areas of her life as well, so for her it was definitely developmental. Not every kid is able to handle it all at this young of an age. Teaching her what was expected of her and giving her detailed tools and breaking it down into manageable items she could handle was key for her.
This is what worked for us. In the car on the way to practice we would have a little mind training talk. I framed it as a way to help her be a better gymnast and she ate it up. I would pick one thing and we would talk about it and how it was important and how it would directly affect her gymnastics. And then I would give her one related task to focus on at that practice. I took the gymnastics skills/drills etc completely out of it as that is between her and her coach. What I could help her with was getting her mind in a good place.
Here is an example. Her coaches would have to remind her it was her turn every time because if she was waiting for her turn she would get distracted by one of the other girls talking with her and not be ready to go and then the coach would be like "hey!" and then she would go but her mind wasn't focused and she wouldn't make the corrections or do it with proper form.
So, we would talk each day before practice about how important it is to be mentally prepared for her turn. It's respectful to the coach and she is much more likely to make the correction or do it correctly if she prepares herself before she goes etc. Then each day that week I would give her a single task. Today, I want you to make sure that your coach doesn't have to remind you it is your turn to go. Today, I want you to focus on the given correction while the person in front of you goes so you are ready. Today, I want you to focus on not getting sucked into silliness by your neighbor. etc.
Then after practice we would talk it through. How did it go? What was hard? Did you notice any difference in your state of mind, focus or gymnastics. etc.
We kept it light, positive and fun/funny whenever possible. I talked to her in a serious but age appropriate manner. She had made it very clear that she is serious about taking gymnastics as far as possible and so I made it clear that these things are the things that are going to make the difference between succeeding and not.
She is now a focused, competitive, working machine. She is known as one of the most focused hard working and successful young up and coming gymnasts in our gym and I could not be more proud of her.
My suggestion is talk to her. Does she love gymnastics? Does she still want to go? Does she want to get better? What is her favorite part of gymnastics? Why is she finding it difficult to concentrate or make the corrections or do it properly or whatever her issue is? Just keep asking lots of questions until you get somewhere to start and help her figure out ways to make it better.
Good luck and keep us posted!