fancy_bar
一个华丽而美丽的动画小部件,适用于您的 Flutter 应用程序
- 星标
- 35
- 复刻
- 8
- 最近推送(UTC)
- 2021年5月26日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
FancyBar
A fancy yet beautiful animated widget for your Flutter apps
| Preview Version 1 |
|---------|----------|
|
|
| Preview Version 2 |
|---------|----------|
|
|
Customization (Optional)
FancyBar
items - navigation items, required more than one item and less than six
selectedIndex - the current item index. Use this to change the selected item. Default to zero
onItemSelected - required to listen when a item is tapped it provide the selected item's index
type - You can pass the required Fancy Bar type. Available FancyV1, FancyV2
FancyItem
icon - the widget of this item. Your can pass any widget as param.
title - the text that will appear next to the icon when this item is selected.
textColor - the active item's text color
Getting Started
Add the plugin:
dependencies:
fancy_bar: ^1.2.0
Basic Usage
Adding the widget
bottomNavigationBar: FancyBottomBar(
type: FancyType.FancyV2, // Fancy Bar Type
items: [
FancyItem(
textColor: Colors.orange,
title: 'Home',
icon: Icon(Icons.home),
),
FancyItem(
textColor: Colors.red,
title: 'Trending',
icon: Icon(Icons.trending_up),
),
FancyItem(
textColor: Colors.green,
title: 'Search',
icon: Icon(Icons.search),
),
FancyItem(
textColor: Colors.brown,
title: 'Settings',
icon: Icon(Icons.settings),
),
],
onItemSelected: (index) {
print(index);
},
),
Catch me up on LinkedIn @Leo Elstin
💙 to Code👨🏽💻 Flutter Expert • Dart Kotlin Swift Node Js • Android • Full Stack Mobile Developer
分类
使用的依赖
依赖清单 2 项
- flutter
{"sdk":"flutter"} - flutter_test开发依赖
{"sdk":"flutter"}
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗