FLUTTER ECOSYSTEM

atreeon_get_child_size

A widget that returns the size of the child object. The [onChange] callback will run everytime the widget's size has changed.

atreeon_get_child_size cover
Latest version
0.1.1+1
30-day downloads
6
Likes
2
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The atreeon_get_child_size package provides a Flutter widget that measures and exposes the size of its child widget. It triggers an onChange callback whenever the child's dimensions change, enabling dynamic responses to layout updates. Ideal for scenarios requiring real-time size tracking, such as responsive layouts or animations based on container dimensions. The widget is lightweight and integrates seamlessly into existing Flutter apps across all major platforms.

Use cases
  • Responsive UI adjustments
  • Dynamic animation triggers
  • Layout debugging
  • Real-time size monitoring
  • Custom layout calculations
Key features
  • Real-time size updates
  • OnChange callback support
  • Cross-platform compatibility
  • Minimal performance overhead
  • Simple integration with existing widgets
Suitable for
  • Developers needing size feedback
  • UI components requiring dynamic sizing
  • Debugging layout issues
  • Animations based on dimensions
  • Cross-platform app development
Considerations
  • May cause rebuilds if used in sensitive contexts
  • Requires careful handling in complex trees
  • Not suitable for static size needs
  • Potential performance impact in large widget trees
  • Limited to immediate child size measurement
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add atreeon_get_child_size

Categories

Source repository

Related projects