infinite_canvas
0.0.10, released 2 years ago by rodydavis.com
An extensible infinite canvas widget for Flutter allowing widgets to be moved, scaled, and connected.
What it does
Provides a zoomable and pannable infinite canvas where Flutter widgets can be placed as nodes and connected via edges. It supports node selection, dragging, resizing, marquee selection, and grid snapping.
AI-written summary of version 0.0.10, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a node-based editor, flowchart tool, or mind mapping application.
- You need a pannable and zoomable layout that contains interactive Flutter widgets as nodes.
Skip it when
- You only need standard panning and zooming for a single image or page without interactive child nodes.
- You require complex production-ready graph analysis tools beyond basic node positioning and edges.
Strengths
- Allows any Flutter widget to be used as a canvas node child.
- Includes built-in support for edges, menus, node resizing, and grid snapping.
- Smooth interactions built on top of Flutter's InteractiveViewer.
Weaknesses
- Early stage version (0.0.10) with potential API instability.
- Documentation is mostly limited to the example code.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
import 'package:flutter/material.dart';
import 'package:infinite_canvas/infinite_canvas.dart';
class Example extends StatelessWidget {
const Example({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: InfiniteCanvas(
controller: InfiniteCanvasController(nodes: [], edges: []),
),
);
}
}Alternatives
Packages that do the same job and could replace infinite_canvas.
- docx_viewer
Displays DOCX files across Flutter platforms
62Compare - animated_stack_widget
Stack widget that animates adding and removing children
50Compare - animated_tree_view
A hierarchical tree view widget with animations, based on AnimatedList.
50Compare - clickable_list_wheel_view
A wrapper for ListWheelScrollView that allows children to respond to tap events.
50Compare
Works with
Packages commonly used together with infinite_canvas: ones it builds on, ones built on it, and its own family.