novident_nodes 1.0.5 copy "novident_nodes: ^1.0.5" to clipboard
novident_nodes: ^1.0.5 copied to clipboard

An internal Novident package for export common Nodes

🗃️ Novident Nodes #

Warning

This is a library just for internal uses of Novident application and the packages related with the app.

This package can change constantly and may even have drastic breaking changes.

Please, ensure that you're not using this package, since the values into it wont work for other packages than Novident packages.

The nodes within this package have a specific behavior, and they are capable of updating themselves internally without having to do so themselves.

Note

This doesn't mean we have to perform certain validations, as some errors could occur.

Tip

When you want to update the state of a Node, you can use the notify() or notify(propagate: true) method.

  • propagate: determines if the Node will notify its parent Node about its changes.

For example, when using Drag and Drop features, you will need to update all Nodes up to the Main Node that contains your node, since moving nodes requires removing and inserting them in different positions and under different parents:

// ... perform your operations here
// first, notify the root that this Node has changed
oldParentOfNode.notify(propagate: true);
// then, notify the root that this Node has changed too 
// and contains the new node
newParentOfNode.notify(propagate: true);

However, if you only want to update a specific part that doesn't require updating multiple Nodes simultaneously, you can simply use:

yourNode.notify();

In the case of Novident, these packages have multiple uses in different packages:

  • Novident-corkboard: Nodes are used to display nodes in different ways in a customized way, such as creating index cards that can have a defined shape or a defined point on the screen, or even having what we call freeform node mode, which allows us to move these cards to any position we want.

  • Novident-tree-view: Nodes are used to define where and how nodes will be displayed in a widget tree. It's quite similar to TreeSliverView, but this implementation is more tailored to work with Novident standards.

For now, these will be the most common uses. In the long term, the definition of these nodes may change, depending on Novident's needs and the feature being built.

0
likes
0
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

An internal Novident package for export common Nodes

Repository (GitHub)
View/report issues

Topics

#novident #nodes #internal

Documentation

Documentation

License

unknown (license)

Dependencies

collection, flutter, meta, uuid

More

Packages that depend on novident_nodes