floating_frosted_bottom_bar
thejitenpatel/floating_frosted_bottom_bar open-source repository details.
- 星标
- 5
- 复刻
- 2
- 最近推送(UTC)
- 2022年2月13日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Floating Frosted Bottom Bar
A Flutter package that helps you to create a frosted floating bottom navigation bar that also reacts to scrolling events.
Demo 👀
Usage 🎨
Wrap any child widget with FrostedBottomBar to convert it into frosted bottom bar.
Basic example,
FrostedBottomBar(
opacity: 0.6,
sigmaX: 5,
sigmaY: 5,
child: Text(
"Frosted Bottom Bar Example",
textAlign: TextAlign.center,
style: TextStyle(color: Colors.white),
),
body: (context, controller) =>
ListView.builder(
controller: controller,
itemBuilder: (context, index) {
return const Card(child: FittedBox(child: FlutterLogo()));
},
),
)
Detail Usage
Following are the optional properties that can be used inside FrostedBottomBar
| Parameter | Example | Action |
|---|---|---|
| sgimaX | sgimaX: 5 |
Creates an image filter that applies a Gaussian blur |
| sgimaY | sgimaY: 5 |
Creates an image filter that applies a Gaussian blur |
| opacity | opacity: 0.6 |
An opacity of 1.0 is fully opaque. An opacity of 0.0 is fully transparent (i.e., invisible). |
| hideOnScroll | hideOnScroll: false |
On true it will hide bottom bar on scroll |
| bottomBarColor | bottomBarColor: Colors.grey |
Change the bottom bar color |
| start | start: 2 |
The start position in y-axis of the SlideTransition of the FrostedBottomBar |
| end | end: 0 |
The end position in y-axis of the SlideTransition of the FrostedBottomBar |
| duration | duration: const Duration(seconds: 1) |
Set the duration of the FrostedBottomBar |
| width | width: MediaQuery.of(context).size.width * 0.6 |
Set the width for FrostedBottomBar |
| borderRadius | borderRadius: BorderRadius.circular(500) |
Set the radius of FrostedBottomBar |
| reverse | reverse: true |
Reverse the direction of scrolling of FrostedBottomBar i.e. if you want to make the bar visible when you scroll down and hide it when you scroll up, set this to true |
| alignment | alignment: Alignment.bottomCenter |
Set the alignment of FrostedBottomBar |
| fit | fit: StackFit.loose |
The fit property of the Stack in which the FrostedBottomBar is placed |
| alignment | alignment: Alignment.bottomCenter |
Set the alignment of FrostedBottomBar |
语言C++DartCMakeHTMLSwiftCKotlinObjective-C
使用的依赖
依赖清单 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 ↗
