PackageTrack
Sign in Get early access

adaptive_foreground

Flutter widget that auto-selects black or white foreground from background luminance. Includes status-bar sync and live RepaintBoundary pixel sampling.

0.0.4 mjaber5/flutter_adaptive_foreground

What this package is like to depend on

Last release 3 months ago

24 May 2026

Too new to tell

only 2 release windows

Nearly every release is documented

notes for 4 of 4 stable releases

Nothing withdrawn

no release was ever pulled

3 months old

4 releases · first in 2026

4 releases in the last 12 months

see the full history below

Release timeline

4 releases · May 2026 to May 2026
Release Pre-release

Releases

latest 4
  1. 0.0.4 24 May 2026
    Release notes

    Fixed

    • Fixed broken relative demo.gif path in README.md by utilizing absolute raw GitHub URLs so that project visualizer media renders flawlessly on pub.dev.

    Open source →
  2. 0.0.3 24 May 2026
    Release notes

    Added

    • AdaptiveNavBar widget — a pixel-perfect, pure-Flutter replica of the Apple App Store's adaptive frosted glass bottom navigation bar.
    • CNSymbol and CNTabBar integrations from cupertino_native inside the example application to show authentic platform tab bars on iOS.
    • Dynamic AdaptiveTheme resolving surface blurs, inactive elements tints, dynamic active highlight pills, and micro-thin top borders.
    • Isolated, low-resolution pixel sampling in BrightnessSampler with debouncing (> 100ms) and smooth transitions (250ms curve).
    • Dedicated widget and unit test coverage in test/adaptive_nav_bar_test.dart asserting correct rendering, taps, and theme color maps.

    Fixed

    • Relocated AppAdaptiveForeground context inside ColorPlaygroundPage using direct background color hint mapping, completely bypassing fragile screen captures and resolving Platform View compositing conflicts on iOS.
    • Restored explicit tint: color on iOS native buttons to ensure native visual glass effects adapt dynamically to contrast state.
    • Upgraded Android circular action buttons to implement high-performance BackdropFilter glassmorphism blurs and AnimatedContainer transitions matching iOS tab bar aesthetics.
    • Custom-themed all example swiper pages and bottom tab items (Demo, Contrast, Glass, Metrics, Docs) to focus entirely on showcasing package features and guides.

    Open source →
  3. 0.0.2 08 May 2026
    Release notes

    Fixed

    • Shortened pubspec.yaml description to satisfy the pub.dev 180-character limit.
    • Added dartdoc comments to all public API fields (AppAdaptiveForeground, AppButtonIosAndroid, AppIosButton) to exceed the 20 % documentation threshold.

    Open source →
  4. 0.0.1 08 May 2026
    Release notes

    Added

    • AppAdaptiveForeground widget — adaptive black/white foreground color based on background luminance, with smooth 300 ms ColorTween transitions.
    • Hysteresis (hysteresis parameter, default 0.08) prevents status-bar icon oscillation when sampled luminance hovers near the switching threshold.
    • Two sampling strategies: backgroundColorHint (instant) and live backdrop sampling via a RepaintBoundary samplingKey.
    • updateStatusBar flag to keep SystemUiOverlayStyle in sync automatically.
    • Static accessors: AppAdaptiveForeground.of, backgroundColorOf, systemStyleOf.
    • AppButtonIosAndroid — cross-platform circular action button (native iOS CNButton on iOS, Material InkWell circle on Android).
    • AppIosButton — thin wrapper over cupertino_native's CNButton.icon.
    • AppDimensions — lightweight sizing constants (no external scaling library).
    • MIT License.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive