I looked at your profile and see that your DD is 8-yrs-old. Maybe a little older (if you haven't updated your profile in over a year!).
It is fantastic that you caught onto this "early". I have a son in middle school and he balks at homework time. Not because he doesn't know the material (just as you describe with your DD). Most often he balks when a project is given (or an essay! egad!!!) -- he just sees it as a insurmountable mountain when it's not but a molehill. He is on medication for ADD so I would suppose, first, that you are not necessarily seeing an ADD issue with your DD.
I like the post with the catchy phrase "The quickest way to fun is to get the work done." What has helped the most, for my son, is tell him to re-read the directions/instructions to me (out loud) and ask him what is the "first step". I've reminded him that he can't "jump" to the top of our stairs -- he gets there one step at a time. You can use an analogy your DD would relate to. Another thing is to have him start his homework right after school (I do allow a snack (and bathroom break)).
Hope this helps. I think you should look into setting up a school planner or some alternative -- for staying organized. My son "forgets" his homework all too easily. He and I are struggling to find something that will work for him.
While at school, your child may need extra breaks. At her age, she is probably in elementary school and that, usually, means one teacher, one room, for most of the school day. Or ask if there can be a "thinking" spot in the classroom for your DD to use. Most teachers want to work with your child (as time allows with the rest of the kids in the classroom!). It was wise to discuss this with your DD's teacher. Letting the teacher know that you are seeing this same behavior at home is helpful; letting them know what you have done at home that is successful to get her to focus is also valuable information. Maybe you would ask if the school has a "study room" (not ISS (in-school suspension) room) where your DD can visit as needed for some quiet time with little or no distractions.
Good luck! and don't forget to let us know what helped you in this situation!