interactional_canvas 0.2.5 copy "interactional_canvas: ^0.2.5" to clipboard
interactional_canvas: ^0.2.5 copied to clipboard

The flutter package that operating interactive canvas.

Interactional Canvas #

pub package

A Flutter package that provides interactional canvas, which can add nodes and manipulating nodes in a InteractiveViewer.

Usage #

To use this package, add interactional_canvas as a dependency in your pubspec.yaml file.

Sample Usage #

  • You can now add a InteractionalCanvas widget to your widget tree.
class Demo extends StatefulWidget {
  const Demo({Key? key}) : super(key: key);

  static const title = 'amap_flutter_example';

  @override
  State<Demo> createState() => _DemoState();
}

class _DemoState extends State<Demo> {
  late CanvasController controller;
  
  @override
  void initState() {
    super.initState();
    controller = CanvasController();
  }
  
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text(Demo.title),
      ),
      body: InteractionalCanvas(
        controller: controller,
      ),
    );
  }
}

See the example directory for a complete sample app.

1
likes
130
points
390
downloads

Publisher

unverified uploader

Weekly Downloads

The flutter package that operating interactive canvas.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, flutter, vector_math

More

Packages that depend on interactional_canvas