Skip to content

Commit

Permalink
Fix resizable example 6
Browse files Browse the repository at this point in the history
  • Loading branch information
sunarya-thito committed Nov 26, 2024
1 parent d79943f commit 0255017
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,19 @@ class _ResizableExample6State extends State<ResizableExample6> {
minSize: 40,
initialSize: 120,
child: LayoutBuilder(builder: (context, constraints) {
var maxWidth =
constraints.maxWidth - 1; // -1 is the divider
return ResizablePanel.horizontal(
children: [
ResizablePane(
initialSize: constraints.maxWidth / 2,
initialSize: maxWidth / 2,
child: NumberedContainer(
index: 2,
fill: false,
),
),
ResizablePane(
initialSize: constraints.maxWidth / 2,
initialSize: maxWidth / 2,
child: NumberedContainer(
index: 3,
fill: false,
Expand Down

0 comments on commit 0255017

Please sign in to comment.