v0.0.4bnb_flutter
一個高度可自訂的 Flutter 底部導覽列包,支援平滑動畫與彈性項目支援。專為簡潔性、回應性與原生外觀設計。
touhid1333/bnb_flutter open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
A highly customizable Flutter bottom navigation bar package with smooth animations and flexible item support. Built for simplicity, responsiveness, and a native look and feel.
Add the following to your pubspec.yaml:
dependencies:
bnb_flutter: ^<latest_version>
Then run:
flutter pub get
Import the package:
import 'package:bnb_flutter/bnb_flutter.dart';
Use the BnbWidget widget in your scaffold:
class MyBottomBar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return BnbWidget(
items: [
BnbItem(
iconData: Icons.home,
),
BnbItem(
iconData: Icons.list,
),
BnbItem(
iconData: Icons.settings,
),
BnbItem(
iconData: Icons.book_outlined,
),
BnbItem(
iconData: Icons.person,
),
],
onTap: (p0) =>
setState(() {
selectedIndex = p0;
}),
selectedIndex: selectedIndex,
style: BnbStyle(
iconSize: const Size(24, 24),
),
);
}
}
For a complete example, check the example project included in the repository
Contributions are welcome! Feel free to open issues or submit PRs.
git checkout -b feature/my-feature)git commit -am 'Add new feature')git push origin feature/my-feature)This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.
Developed with ❤️ by Touhid
依賴清單 1 項
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗