Skip to content
pubscout

dxf

3.1.3, released 3 years ago by humg.edu.vn

DXF package for Dart to create, read, update and delete AutoCAD DXF files.

WASM-ready
$ flutter pub add dxf
Source repository

What it does

Provides Dart classes representing DXF entities and utilities to generate DXF strings or parse existing DXF content. Supports common entities like lines, circles, arcs, polylines, text, etc.

AI-written summary of version 3.1.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to generate or read DXF files in a pure Dart/Flutter project
  • You want a lightweight, pure‑Dart solution without native dependencies

Skip it when

  • You require advanced CAD features or full DXF spec coverage
  • Performance‑critical rendering of large CAD files is needed

Strengths

  • Pure Dart, works on all Flutter platforms
  • Supports a range of basic DXF entities
  • Null‑safe and easy to add to pubspec

Weaknesses

  • Limited entity coverage compared to full CAD libraries
  • Documentation is minimal
  • No active mention of recent maintenance

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:dxf/dxf.dart';

void main() {
  final dxf = DXF.create();
  var line = AcDbLine(x: 3.6, y: 14.3, x1: 8.08, y1: 15.3);
  dxf.addEntities(line);
  print(dxf.dxfString);
}

Alternatives

Packages that do the same job and could replace dxf.