Skip to content
House of Algorithms
Zenodo DOI Published · Apache 2.0Release v0.2.0Jetpack ComposeFlutterMaven / pub.dev
FloatAround icon

FloatAround — Scroll-Linked Avoidance

Content that steps around floating overlays, row by row, as you scroll—for Jetpack Compose & Flutter.

On tablets and foldables, a floating navigation pill covers whatever scrolls beneath it. Padding the whole list wastes the space the pill was meant to save. FloatAround computes a per-row inset as a pure function of vertical distance—stepping aside smoothly when beside the pill and reclaiming full width everywhere else.

Published with a formal research paper on Zenodo (DOI: 10.5281/zenodo.24144275) and shipped in production for Jetpack Compose and Flutter.

0
Recompositions
C²
Smooth Continuity
2
UI Toolkits
v0.2.0
Maven & pub.dev

Scroll-Linked Smootherstep Avoidance in Jetpack Compose & Flutter

Capabilities & Craft

Key Features & Engineering

Zero Overhead

Measure-Phase Geometry (Zero Recomposition)

Evaluates insets during layout measure so scrolling re-measures only the rows near the floating obstacle without triggering widget rebuilds or Compose recompositions.

Pure Function

Smootherstep Feathering Without Clocks

Uses quintic smootherstep t³(6t² − 15t + 10) of vertical distance—moving in 1:1 lockstep with your finger and settling the instant scrolling stops.

Adaptive Layout

Full-Frame Carousels & LTR/RTL Parity

Shifts only the internal content padding of horizontal carousels while keeping their viewport frame full-bleed, automatically mirroring in Arabic RTL.

Open Research

Published Paper & Dual-Toolkit SDK

Available on JitPack for Jetpack Compose and pub.dev for Flutter, accompanied by the citable Zenodo paper.

System Design

Architecture & Runtime Layers

01

Core Avoidance Equation

intrusion = obstacle.right + gap - row.left; t = 1 - d / feather; inset = intrusion * t³(6t² - 15t + 10). Ports cleanly to any layout system.

02

Jetpack Compose & Flutter Implementations

Ships as Modifier.floatingObstacle / Modifier.avoid in Compose and FloatingObstacleRegion / Avoid / AvoidanceBuilder in Flutter.

Built With

Production Tech Stack

KotlinJetpack ComposeFlutter & DartCustom Measure LayoutSmootherstep GeometryApache 2.0 License
Privacy & Data Safety

FloatAround is an open-source client layout library for Jetpack Compose and Flutter. It performs only in-memory layout calculations and collects zero data.

Questions

Frequently asked

What is FloatAround?

An open-source UI library that lets list content step around floating buttons and overlays row by row as you scroll, instead of padding the whole screen.

Which frameworks does it support?

Jetpack Compose and Flutter, published on Maven and pub.dev.

Is it free to use?

Yes. FloatAround is open source under the Apache 2.0 license.