FLUTTER ECOSYSTEM

rect_getter

A widget provide a simple way to get child`s rectangle information after rendered.

rect_getter cover
Latest version
1.1.0
30-day downloads
9.9K
Likes
97
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

RectGetter is a Flutter package that simplifies the process of obtaining a child widget's rectangle dimensions and position after rendering. It provides a convenient way to access precise layout information such as offset, size, and bounds within a widget tree. Ideal for gesture detection, animations, or UI alignment tasks requiring accurate spatial data. The package works across all major platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring consistent behavior regardless of target environment.

Use cases
  • Gesture-based interactions
  • Dynamic UI positioning
  • Animation triggers based on layout
  • Debugging widget placement
  • Overlay element alignment
Key features
  • Real-time rectangle data after render
  • Cross-platform compatibility
  • Simple API integration
  • Supports nested widgets
  • Accurate offset and size reporting
Suitable for
  • Developers needing layout metrics
  • UI/UX designers implementing interactive layouts
  • Apps with dynamic or responsive interfaces
  • Debugging layout issues
  • Custom gesture detectors
Considerations
  • Requires post-render access to widget tree
  • May impact performance if overused
  • Not suitable for immediate pre-render measurements
  • Limited to visible and rendered children
  • Best used in conjunction with build context
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add rect_getter

Categories

Source repository

Related projects