shifting_tabbar
Flutter 框架的自定义标签栏小部件。
- 星标
- 146
- 复刻
- 17
- 最近推送(UTC)
- 2025年7月12日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Shifting TabBar
A custom tab bar widget for Flutter framework.
The design is inspired from Rally project (one of material design studies).
Getting Started
Add the package to pubspec.yaml
dependencies:
...
shifting_tabbar: ^1.0.2
Import the package
import 'package:shifting_tabbar/shifting_tabbar.dart';
Basic Usage
This widget is programmed to work with TabController.
You just need to install and import it to your code and use it just like TabBar.
Don't forget to use DefaultTabController as an ancestor widget if you don't specify controller manually!
new ShiftingTabBar(
tabs: [
ShiftingTab(
icon: Icon(Icons.directions_bike),
text: "Test 1",
),
ShiftingTab(
icon: Icon(Icons.directions_car),
text: "Test 2"
),
ShiftingTab(
icon: Icon(Icons.directions_transit),
text: "Test 3"
),
],
)
See example folder in git repository for more detailed example.
语言DartJavaObjective-CSwiftKotlin
分类
使用的依赖
依赖清单 2 项
- flutter
{"sdk":"flutter"} - flutter_test开发依赖
{"sdk":"flutter"}
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗