dxf_viewer 0.0.1 copy "dxf_viewer: ^0.0.1" to clipboard
dxf_viewer: ^0.0.1 copied to clipboard

A library to create, read, write, modify and visualize an AutoCAD DXF by AutoDesk

Implements a library to create, read, write, modify and visualize an AutoCAD DXF (Drawing Interchange Format, or Drawing Exchange Format) by AutoDesk

Features #

The library can create, read, write, modify and visualize an AutoCAD DXF

Installing #

In order to use this dxf_viewer library, follow the steps above:

  1. Add this package to your package's pubspec.yaml file as described on the installation tab
  2. Import the library

  import 'package:dxf_viewer/dxf_viewer.dart';

Usage #

Define a Stateful Widget that load and then show a DXF


  class _MyAppState extends State<MyApp> {
    DxfViewer? dxf;
    @override
    void initState() {
      dxf = DxfViewer(file: File('test1.dxf'));
      super.initState();
    }

    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        // Root widget
        home: Scaffold(
          appBar: AppBar(
            title: const Text('My Home Page'),
          ),
          body: Center(
            child: Builder(
              builder: (context) {
                return Column(
                  children: [
                    dxf ?? const Text('Hello, World!'),
                  ],
                );
              },
            ),
          ),
        ),
      );
    }
  }

See also directory for further examples.

Features and bugs #

Note that not all the DXF entities' drawing are implemented yet.

Please file feature requests and bugs at the issue tracker.

2
likes
0
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A library to create, read, write, modify and visualize an AutoCAD DXF by AutoDesk

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on dxf_viewer