非表示可能
任意の静的に配置されたウィジェットをスクロール時に非表示にすることができるウィジェット。
- スター
- 41
- フォーク
- 4
- 最終プッシュ(UTC)
- 2026/03/19
- プロジェクト状態
- 公開中
元の README
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
hidable
Use this package as a library
Run this command with Flutter:
$ flutter pub add hidable
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
hidable: ^1.0.6
To start using Hidable widget, we have to create a ScrollController. inctance before.
final ScrollController scrollController = ScrollController();
As case of usage, we should have one scrollable widget (SingleChildScrollView, ListView etc)
and one static located widget (AppBar, BottomNavigationBar, FloatingActionButton and etc) which would be wrapped with Hidable widget.
So, scrollController which we created before must be given to each one (scrollable widget and static located hidable widget).
Scrollable widget
ListView.separated(
// General scroll controller which makes bridge between
// This ListView and Hidable widget.
controller: scrollController,
itemCount: colors.length,
itemBuilder: (_, i) => Container(
height: 50,
color: colors[i].withOpacity(.6),
),
separatorBuilder: (_, __) => const SizedBox(height: 10),
),
Static located hidable widget
Hidable(
controller: scrollController,
enableOpacityAnimation: true, // optional, defaults to `true`.
child: BottomNavigationBar(...),
),
That is the common usage of hidable, and also you can find full code implmenetation of hidable at official example page.
カテゴリー
使用している依存関係
依存関係一覧 3 件
- flutter
{"sdk":"flutter"} - flutter_test開発用
{"sdk":"flutter"} - flutter_lints開発用
^1.0.0
プロジェクトに合うリポジトリを選ぶには?
用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
- 名前・作者・説明で検索し、技術トピックで絞り込みます。
- スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
- 利用前に GitHub で README、ライセンス、Issues を確認します。
情報源と管理
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗