flex_overlay 0.6.1+2
flex_overlay: ^0.6.1+2 copied to clipboard
A pure positioning system for Flutter popups, tooltips, and overlays. Smart alignment-based positioning with automatic edge detection and fallback strategies, without imposing any styling.
0.6.1+2 #
Fixed #
- Click Propagation - Prevent clicks from propagating to parent widgets (e.g., table rows) by combining
ListenerwithGestureDetectorto win gesture arena
0.6.1+1 #
Improved #
- Click Response - Use
Listener.onPointerDowninstead ofGestureDetectorfor instant click response with raw pointer events
0.6.0 #
Fixed #
- Scrollable Content Support - Fixed
RenderBox was not laid outerrors when popup content containsFlexible+SingleChildScrollViewor other widgets with unbounded intrinsic sizes. Replaced intrinsic measurement with constrained measurement using overlay bounds. (Fixes #1)
0.5.0 #
Initial release of FlexOverlay - a pure positioning system for Flutter popups and tooltips.
Features #
- Smart Positioning - Alignment-based positioning with automatic fallback strategies
- Edge-Aware - Automatically keeps popups within screen bounds with configurable margins
- Overlap Detection - Prevents popups from covering trigger widgets
- Dual Interaction Modes - Support for both click and hover interactions
- Programmatic Control - External state control via
visibleparameter - Scoped Boundaries -
FlexOverlayScopefor constraining popups to specific regions - Auto-Hide - Optional timeout for automatic dismissal
- Pure Positioning - No styling imposed, complete control over appearance
- Dynamic Content - Handles content size changes gracefully
- Zero Dependencies - Pure Flutter implementation
API #
FlexOverlay- Main widget for creating positioned popupsPositionConfig- Configuration for positioning behavior with presets (.top(),.bottom(),.left(),.right())InteractionConfig- Configuration for click/hover interactionsFlexOverlayScope- Boundary constraints for popup positioningInteractionMode- Enum for click vs hover modes