float_around library
Classes
- Avoid
- Gives up as much of child's edge next to obstacle as needed to clear it, depending on how close it currently is. The opposite edge stays where it is.
- AvoidanceBuilder
- Rebuilds with the padding this widget currently needs to clear obstacle.
- FloatingObstacle
- A floating overlay (rail, pill, toolbar) that content should step around.
- FloatingObstacleRegion
- Publishes child's bounds as the obstacle.
Functions
-
avoidanceInsets(
Rect row, Rect obstacle, {required double gap, required double feather}) → EdgeInsets -
The padding
rowneeds to clearobstacleon the side the obstacle sits on.