treemap 0.2.0 copy "treemap: ^0.2.0" to clipboard
treemap: ^0.2.0 copied to clipboard

outdated

A simple Dart implementation of treemap.

Treemap #

pub package travis

A simple Dart implementation of treemap.

Usage #

Add treemap to your pubspec:

dependencies:
  treemap: any # or the latest version on Pub

Add in you project.

  Widget build(BuildContext context) {
    return child: TreeMapLayout(
      tile: Binary(),
      root: TreeNode.node(
        // padding: EdgeInsets.symmetric(horizontal: 20),
        children: [
          TreeNode.leaf(
            value: 16,
            margin: EdgeInsets.all(5),
          ),
          TreeNode.leaf(
            value: 57,
            margin: EdgeInsets.all(5),
          ),
          TreeNode.leaf(
            value: 97,
            margin: EdgeInsets.all(5),
          ),
          TreeNode.leaf(
            value: 3,
            margin: EdgeInsets.all(5),
          ),
          TreeNode.leaf(
            value: 43,
            margin: EdgeInsets.all(5),
          ),
          TreeNode.leaf(
            value: 54,
            margin: EdgeInsets.all(5),
          ),
        ]),
    );
  }

Run the example #

See the example/ folder for a working example app.

7
likes
0
pub points
84%
popularity

Publisher

unverified uploader

A simple Dart implementation of treemap.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on treemap