Skip to content

Commit

Permalink
Simplifying the examples #20
Browse files Browse the repository at this point in the history
  • Loading branch information
caduandrade committed Apr 26, 2022
1 parent 39d145c commit 9925de2
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@ A widget to provides horizontal or vertical multiple split view for Flutter.
## Minimal child weight

```dart
MultiSplitView multiSplitView =
MultiSplitView(axis: Axis.vertical, children: [
MultiSplitView(children: [child1, child2], minimalWeights: [.25, .25]),
MultiSplitView(children: [child3, child4])
]);
MultiSplitView(children: [child1, child2], minimalWeights: [.25, .25]);
```

## Global minimal children weight
Expand All @@ -130,11 +126,7 @@ The size will be converted into weight and will respect the limit defined by the
The value `zero` is ignored and indicates that no size has been set.

```dart
MultiSplitView multiSplitView =
MultiSplitView(axis: Axis.vertical, children: [
MultiSplitView(children: [child1, child2], minimalSizes: [150, 0]),
MultiSplitView(children: [child3, child4])
]);
MultiSplitView(children: [child1, child2], minimalSizes: [150, 0]);
```

## Global minimal children size in pixels
Expand All @@ -143,10 +135,7 @@ Used if `minimalSizes` 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.

```dart
MultiSplitView(axis: Axis.vertical, children: [
MultiSplitView(children: [child1, child2], globalMinimalSize: 100),
MultiSplitView(children: [child3, child4])
]);
MultiSplitView(children: [child1, child2], globalMinimalSize: 100);
```

## Resizable
Expand Down

0 comments on commit 9925de2

Please sign in to comment.