Skip to content
pubscout

flutter_resizable_container

4.2.0, released 2 years ago by andyhorn.dev

Add nestable, resizable containers with custom dividers to your Flutter app.

WASM-ready
$ flutter pub add flutter_resizable_container
Source repository

What it does

Provides resizable container widgets with draggable dividers that support nesting, LTR and RTL layouts, and flexible sizing rules such as pixels, ratios, expand, and shrink. It also includes a controller to programmatically manage sizes and listen to changes.

AI-written summary of version 4.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need split-pane or multi-panel layouts with user-adjustable dividers.
  • You require nestable resizable layouts supporting both horizontal and vertical directions.

Skip it when

  • You just need standard static layouts without resizing capabilities.
  • Your child widgets do not have a natural size when using shrink configurations.

Strengths

  • Fully nestable containers supporting LTR and RTL.
  • Highly customizable dividers with hover, drag, and tap callbacks.
  • Supports absolute pixels, proportional ratios, expanding flex, and shrink sizing.

Weaknesses

  • Requires proper controller disposal and size boundary configurations to avoid unexpected layout shifts.
  • Using shrink requires children to have a natural size to avoid rendering errors.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
ResizableContainer(
  direction: Axis.horizontal,
  children: [
    ResizableChild(
      size: ResizableSize.expand(max: 350),
      child: NavBarWidget(),
    ),
    ResizableChild(
      child: BodyWidget(),
    ),
  ],
)

Works with

Packages commonly used together with flutter_resizable_container: ones it builds on, ones built on it, and its own family.