HusseinCopol / interactable_svg

A flutter package for interact with different parts of a SVG.
MIT License
9 stars 6 forks source link

Center the center text #3

Open BigPeanutFromStudio opened 6 months ago

BigPeanutFromStudio commented 6 months ago

Is there a way to center the text in the middle of rooms?

image

The text on the right is overflowing and it would be great to center it perfectly under the dot instead of it being to the right of it.

BlackReaper94 commented 4 months ago

Can you explain to me how you created that svg to work with the package? SVG's generated by blender do not even show. My only guess is that my svg is too complex but when I tried one that is just a square it also was not shown. What am I missing? Is it even possible to have something besides rectangles? I was aiming for shapes which contain curves

BigPeanutFromStudio commented 4 months ago

My friend worked on creating the svgs and he did it in adobe illustrator I think. They are composed of paths each with id and name.

Example of one rectangle:

Maybe if you create a path with more points you could create something besides the rectangles but I'm not sure as I haven't tested it to that extent, we just needed a simple map for our school.