util_simple_3d 12.0.1 copy "util_simple_3d: ^12.0.1" to clipboard
util_simple_3d: ^12.0.1 copied to clipboard

Utility for Sp3dObj. Includes 3D geometry generation utility and more.

example/main.dart

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

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.green,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    final sp3dObj = UtilSp3dGeometry.cube(100, 100, 100, 1, 1, 1);
    return Scaffold(
      appBar: AppBar(
        title: const Text('The Cube Structure.'),
      ),
      body: Center(
        child: Container(
            padding: const EdgeInsets.all(24),
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Text(
                  sp3dObj.toDict().toString(),
                  style: Theme.of(context).textTheme.headlineMedium,
                ),
              ],
            )),
      ),
    );
  }
}
27
likes
160
points
505
downloads

Publisher

unverified uploader

Weekly Downloads

Utility for Sp3dObj. Includes 3D geometry generation utility and more.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, simple_3d

More

Packages that depend on util_simple_3d