Skip to content
pubscout

hidable

1.0.6, released 3 years ago by theiskaa.com

A widget that makes any static located widget hidable on scroll.

WASM-ready
$ flutter pub add hidable
Source repository

What it does

Provides a Hidable widget that bridges a scroll controller with widgets like AppBars or BottomNavigationBars to hide or show them automatically as the user scrolls. Supports optional opacity animation, custom delta factors, and custom visibility algorithms.

AI-written summary of version 1.0.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to hide a BottomNavigationBar or AppBar when the user scrolls down
  • You want to maximize screen space for scrollable content on demand

Skip it when

  • You are not using a scroll controller that can be shared between the scrollable and the hidable widget

Strengths

  • Easy to integrate with existing ScrollControllers
  • Supports customizable hiding/appearing speed and opacity animations

Weaknesses

  • Requires sharing the same ScrollController between the scrollable view and the hidable widget

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
final ScrollController scrollController = ScrollController();

Hidable(
  controller: scrollController,
  enableOpacityAnimation: true,
  child: BottomNavigationBar(...),
)

Alternatives

Packages that do the same job and could replace hidable.