blueprint_system 0.0.2 blueprint_system: ^0.0.2 copied to clipboard
A flutter library that creates blueprint widgets with nodes (child widgets) that may be added to them. These nodes can be moved, resized, and modified.
Blueprint System πΊοΈ #
A flutter library that creates blueprint widgets with nodes (child widgets) that may be added to them. These nodes can be moved, resized, and modified. β‘
Usage #
- Initialize controller (required)
BlueprintController controller = BlueprintController();
- Use
Blueprint
widget and assign controller to it
@override
Widget build(BuildContext context) {
return Scaffold(
body: Blueprint(controller),
);
}
- Add your first node πΉ
DraggableNode node = DraggableNode(
initPosition: const Offset(50, 100), // optional, default: (100, 100)
initSize: const Size(200, 100), // optional, default: (100, 100)
child: (c) => Container(
color: Colors.red,
child: Text(c.position.toString()),
),
);
controller.addNode(node);
// or
controller.addNodes([node1, node2, ...]);
See: Example
//TODO: #
- β Blueprint Theme
- β Blueprint rulers
- β Blueprint Export to JSON, YAML, XML, etc.
- β Floating Node β¨
Additional information #
This package is still under development and I will do my best to make it more stable.
_PRs are always welcome! π¦