blueprint_system 0.0.1 blueprint_system: ^0.0.1 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 πΉ
NodeController node = NodeController(
initPosition: const Offset(30, 10), // initial position
initSize: const Size(200, 50), // initial size
);
controller.addNode(node);
Additional information #
This package is still under development and I will do my best to make it more stable. PRs are always welcome! π¦