flutter_resizable_container 2.0.0 copy "flutter_resizable_container: ^2.0.0" to clipboard
flutter_resizable_container: ^2.0.0 copied to clipboard

Add nestable, resizable containers to your Flutter app with ease.

2.0.0 #

New major version! See the beta notes below.

2.0.0-beta.4 #

  • Fix a bug in the "available size" initialization that was throwing a "marked dirty during build" exception

2.0.0-beta.3 #

  • Add a ResizableSize.expand constructor that takes a flex integer (defaults to 1)
  • Remove the optionality of the size parameter in ResizableChild and use a default ResizableSize.expand() value
  • Adjust the controller to disallow null values for ResizableSize arguments
  • Adjust the controller to prioritize modifying ResizableSize.expand children when scaling the window (up or down) over the pixel and ratio children, unless no expand children are set

2.0.0-beta.2 #

  • Added a new ResizableSize class that defines a "size" in pixels or as a ratio
  • Changed the startingRatio in the ResizableChild to startingSize that takes an optional ResizableSize
    • This change allows the starting size of a child to be defined as an absolute value (in logical pixels) or as a ratio of the available space
    • If there is a mixture of pixels and ratio sizes, the pixel sizes will be given priority and then the ratio sizes will be given the remaining available space
  • Added a setSizes method to the ResizableController that takes a list of optional ResizableSizes. These sizes will be applied to the current children following the same rules as noted above
  • Removed the ratios setter in favor of the new setSizes method
  • Made the controller an optional param in the ResizableContainer ctor

2.0.0-beta.1 #

  • Renamed ResizableChildData to ResizableChild
  • Added an expand flag to the ResizableChild ctor
    • If there is a startingRatio set and this flag is true, the child will automatically expand to fill any remaining available space. If this flag is false, the child will only expand to meet its startingRatio constraint
    • If the startingRatio is null, the child will automatically expand to fill any remaining available space, regardless of whether or not this flag is set
  • Move the list of ResizableChild objects out of the ResizableController and back into the ResizableContainer as the children parameter
    • This allows the list of children to be modified on-the-fly without recreating a ResizableController

1.0.0 #

First stable version!

  • Encapsulation of divider configuration in a new ResizableDivider class
    • Divider thickness and size properties, mirroring the Flutter Divider's thickness and width properties, have been added
    • onHoverEnter and onHoverExit callbacks allow you to react to the user's interactions with the divider
  • All size tracking and calculations have been moved out of the ResizableContainer widget and into the ResizableController
    • This fixed several bugs and improves performance by converting the ResizableContainer to a StatelessWidget (from stateful)
  • ResizableContainer now requires a List<Widget> as its children property, as the List<ResizableChildData> have been moved into the ResizableController
  • Added and improved tests
  • Added a GH workflow to deploy the example app to GH Pages

0.5.0 #

  • Adds dividerIndent and dividerEndIndent properties to the resizable container

0.4.2 #

  • Fixes an issue with the didUpdateWidget lifecycle hook causing errors to be thrown during hot-reloads

0.4.1 #

  • Add tests for ResizableController
  • Add tests for ResizableContainer
  • Add GitHub Actions workflow

0.4.0 #

  • Add ResizableController to allow programmatic control of resizable children
  • Fix a bug causing adjacent containers to grow in size when the target container reaches is minimum size

0.3.0 #

  • Make divider color and width customizable

0.2.1 #

  • Fix package description to improve pub.dev score

0.2.0 #

  • Update the Dart SDK constraints to >=3.0.0 <4.0.0

0.1.3 #

  • Fix a bug causing overflows when the window is resized
  • Remove the factory and add the debug assert directly to the ctor

0.1.2 #

  • Remove commented code from the example project

0.1.1 #

  • Improve documentation and comments

0.1.0 #

  • Rework dividers to lie in-line with child widgets, taking up space along the primary axis, instead of being placed in a stack and positioned according to the child sizes
  • Add a custom divider who's width is known and can be controlled to ease calculating the available space for child widgets
  • Remove the optionality of the divider - this widget is now required to be visible, as hiding it would disable the resize functionality

0.0.5 #

  • Fix divider and cursor positioning

0.0.4 #

  • Add optional divider line
  • Fix a bug allowing child sizes to grow beyond available space
  • Improve example with switchable direction and toggle-able divider

0.0.3 #

  • Add example to README
  • Add example project
  • Fix a bug allowing negative child sizes

0.0.2 #

  • Fix a typo in the README

0.0.1 #

Initial Release

  • Container resizes and enforces child size constraints (if present)
  • Resize cursor responds to user clicks and drags on web
35
likes
160
pub points
91%
popularity

Publisher

verified publisherandyhorn.dev

Add nestable, resizable containers to your Flutter app with ease.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_resizable_container