multi_split_view 1.2.0 copy "multi_split_view: ^1.2.0" to clipboard
multi_split_view: ^1.2.0 copied to clipboard

outdated

Provides horizontal or vertical multiple split view for Flutter.

pub pub2

A widget to provides horizontal or vertical multiple split view for Flutter.

animated

  • Horizontal or vertical
  • Configurable weight or size for each child
  • Automatic calculation of weights when:
    • Child added without defined weight
    • Weight redistribution when a child is removed
  • Listener to detect children size changes

Examples #

Horizontal
    MultiSplitView(children: [child1, child2, child3]);

horizontal

Vertical
    MultiSplitView(axis: Axis.vertical, children: [child1, child2]);

vertical

Horizontal and vertical
    MultiSplitView(axis: Axis.vertical, children: [
      MultiSplitView(children: [child1, child2, child3]),
      child4
    ]);

horizontalvertical

Setting the weight
    // setting 10% of weight for the first child
    MultiSplitView(
        children: [child1, child2, child3],
        controller: MultiSplitViewController(weights: [0.1]));

horizontalweight

Divider color
    MultiSplitView(
        children: [child1, child2], dividerColor: Colors.black);

dividercolor

Divider thickness
    MultiSplitView(
        children: [child1, child2, child3], dividerThickness: 30);

dividerthickness

Minimal child weight
    MultiSplitView(axis: Axis.vertical, children: [
      MultiSplitView(children: [child1, child2], minimalWeight: .40),
      MultiSplitView(children: [child3, child4])
    ]);

minimalweight

Minimal child size in pixels

Used if minimalWeight has not been set. The size will be converted into weight and will respect the limit defined by the MultiSplitView.defaultMinimalWeight constant, allowing all children to be visible.

    MultiSplitView(axis: Axis.vertical, children: [
      MultiSplitView(children: [child1, child2], minimalSize: 100),
      MultiSplitView(children: [child3, child4])
    ]);
Listener
    MultiSplitView(
        children: [child1, child2],
        onSizeChange: (childIndex1, childIndex2) => print(
            'Index of children who changed size: $childIndex1 and $childIndex2'));
241
likes
0
pub points
95%
popularity

Publisher

verified publishercaduandrade.net

Provides horizontal or vertical multiple split view for Flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on multi_split_view