progression_tree_map 0.0.1
progression_tree_map: ^0.0.1 copied to clipboard
A tree map.
Progression TreeMap #
Open source Flutter package, this a tree node diagram display that analyses a tree node and places it on the ui according to the ortder
Screenshots #
Install and import the package. Then just customize its parameters.
dependencies:
flutter:
sdk: flutter
progression_tree_map: ^0.0.1

ProgressionTreeMap(
treeNodes: nodes,
spacingFactor: 1.0,
circleBoundaryPaintingStyle: PaintingStyle.fill,
circleBoundaryColor: Colors.red,
nodePlacement: NodesPlacement.border,
nodeSeparationAngleFac: 1.2,
globalNodeSize: 20,
centerNodeSize: 40,
linesStartFromOrigin: true,
linesStrokeWidth: 3,
nodeDecoration: BoxDecoration(
shape: BoxShape.circle,
gradient: RadialGradient(
colors: [Colors.green, Colors.green.shade700],
)),
),

ProgressionTreeMap(
treeNodes: nodes,
spacingFactor: 1.0,
circleBoundaryPaintingStyle: PaintingStyle.stroke,
circleBoundaryColor: Colors.grey,
nodePlacement: NodesPlacement.border,
nodeSeparationAngleFac: 1.2,
globalNodeSize: 20,
centerNodeSize: 40,
linesStartFromOrigin: false,
linesStrokeWidth: 2,
linesStrokeColor: Colors.black,
nodeDecoration: BoxDecoration(
shape: BoxShape.circle,
gradient: RadialGradient(
colors: [Colors.red, Colors.red.shade700],
)),
)

ProgressionTreeMap(
treeNodes: nodes,
spacingFactor: 1.0,
circleBoundaryPaintingStyle: PaintingStyle.fill,
circleBoundaryColor: Colors.red,
nodePlacement: NodesPlacement.border,
nodeSeparationAngleFac: 1.2,
globalNodeSize: 20,
centerNodeSize: 40,
linesStartFromOrigin: true,
linesStrokeWidth: 3,
nodeDecoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.white),
)