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

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

example/main.dart

import 'dart:io';

import 'package:dxf_viewer/dxf_viewer.dart';
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  DxfViewer? dxf;
  @override
  void initState() {
    dxf = DxfViewer.fromFile(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('Wait...'),
                ],
              );
            },
          ),
        ),
      ),
    );
  }
}
2
likes
150
points
39
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on dxf_viewer