r/FlutterDev • • 12m ago

Plugin I built a zero-dependency, CAD-style drawing engine for Flutter. v1.1 adds SVG export, blueprint themes and real-world units

Hey r/FlutterDev 👋

I maintain industrial_drawing_flutter, a vector drawing engine for apps that need measured sketches (field service, inspection, construction, manufacturing) rather than freehand doodles. 1.1 just shipped and I'd love feedback.

What's in it:

- 16 shape types, including dimension lines, L/T/U profiles and a warp tool

- Real-world units: set `pixelsPerUnit: 2, unitLabel: 'mm'` and the measure tool and dimension labels read in mm

- SVG export (`controller.toSvg()`) that matches the canvas exactly, because the screen and the SVG are drawn from the same geometry code

- PNG export cropped to the drawing, no GlobalKey needed

- Light, dark and blueprint themes

- Pinch zoom, mouse-wheel zoom, zoom-to-fit, snap-to-grid, alignment guides

- Keyboard shortcuts on desktop/web (⌘Z, ⌘C/⌘V, arrow-key nudge, tool hotkeys)

- Read-only viewer mode

- Zero dependencies: only the Flutter SDK and one CustomPainter (160/160 pub points)

The engine is headless. DrawingController is a ChangeNotifier you can unit test, and the toolbar and panels are optional widgets.

A bug-fix note for anyone on 1.0.x: drawing was offset after zooming or panning. That's fixed, and pinch-zoom finally works.

pub.dev: https://pub.dev/packages/industrial_drawing_flutter

GitHub: https://github.com/akhil-nasim/industrial-drawing

Two questions for you:

  1. Would DXF export be useful to you? (https://github.com/akhil-nasim/industrial-drawing/issues/3)
  2. What's the best touch UX for multi-select? (https://github.com/akhil-nasim/industrial-drawing/issues/4)
1 Upvotes

0 comments sorted by