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 ↗