Back to work
Open Source

adaptive_foreground

Adaptive foreground color and a glassy, App Store-style bottom navigation bar for Flutter. Live luminance sampling, zero boilerplate. Published on pub.dev under mojaber.me.

adaptive_foreground package preview
RoleAuthor & Maintainer
Published2026 — pub.dev
PlatformiOS, macOS (Flutter)
LicenseMIT

adaptive_foreground is a Flutter package I designed and published to solve a recurring problem: text and icons that need to stay legible over scrolling, dynamic backgrounds. It ships two pieces — an AppAdaptiveForeground widget that live-samples the rendered background to pick the highest-contrast foreground color, and an AdaptiveNavBar, a pixel-perfect recreation of Apple App Store's frosted, adaptive bottom navigation bar, built entirely in Flutter with no native platform channels.

Features

Engineering Decisions

Every design choice was driven by production-grade standards: a minimal API surface, pure Flutter rendering with no platform channels, and sampling that stays cheap enough to run every frame without dropping performance.

160
pub points
90+
Downloads
MIT
Open source license
View on pub.dev GitHub Repository

Next Project

Discountter Website →