blueprint_system 0.0.2 copy "blueprint_system: ^0.0.2" to clipboard
blueprint_system: ^0.0.2 copied to clipboard

outdated

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. ⚑

pub package

Usage #

  1. Initialize controller (required)
BlueprintController controller = BlueprintController();
  1. Use Blueprint widget and assign controller to it
@override
Widget build(BuildContext context) {
    return Scaffold(
        body: Blueprint(controller),
    );
}
  1. 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! πŸ¦„

11
likes
0
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, get, uuid, vector_math

More

Packages that depend on blueprint_system