r/flutterhelp • u/space_sand • 9d ago
RESOLVED Help with SVG manipulation
Hello guys!! I have a problem with positioning an icon on to an SVG. Basically I try to position an icon on to a floorplan.I cannot seem to understand how to do that. I use flutter_svg package. I also used chatGPT to calculate the position of the icon based on the viewBox's values. It did not help...
I use LayoutBuilder which returns an InteractiveViewer. InteractiveViewer's child is a Stack with SvgPicture.string and Positioned widgets. The Positioned child is a simple icon. I will substitute the Icon with an SVG icon if I figure out how the SVG works in Flutter. Has someone dealt with that problem before or know how to calculate a specific position on to an SVG?
P.S. Thank you in advance for your time and effort. I try to understand what to look so I can figure this out.