몰텐네비게이션바플러터
애니메이션된 하단 네비게이션 바
- 스타
- 8
- 포크
- 8
- 최근 푸시(UTC)
- 2024. 2. 26.
- 프로젝트 상태
- 활성
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
molten_navigationbar_flutter
An animated bottom navigation bar with a lot of attributes to teak and have fun with ✔🚀
![]() |
![]() |
![]() |
|---|
Getting Started
Add this to your package's pubspec.yaml file:
dependencies:
molten_navigationbar_flutter: ^1.0.0
Import the package
import 'package:molten_navigationbar_flutter/molten_navigationbar_flutter.dart';
How to Use
You can use it in the scaffold's bottomnavigationbar, or anywhere you would like!
Just call the MoltenBottomNavigationBar widget and provide the tabs, onTabChange and selectedIndex attributes.
The rest of the attributes are optional
Scaffold(
bottomNavigationBar: MoltenBottomNavigationBar(
selectedIndex: _selectedIndex,
onTabChange: (clickedIndex) {
setState(() {
_selectedIndex = clickedIndex;
});
},
tabs: [
MoltenTab(
icon: Icon(Icons.search),
),
MoltenTab(
icon: Icon(Icons.home),
),
MoltenTab(
icon: Icon(Icons.person),
),
],
),
),
MoltenBottonNavigationBar's Attributes
| Attribute | Type | Description |
|---|---|---|
| barHeight | double | specify a Height for the bar, Default is kBottomNavigationBarHeight |
| domeHeight | double | specify a Height for the Dome above tabs, Default is 15.0 |
| domeWidth | double | If domeWidth is null, it will be set to 100 |
| domeCircleColor | Color | If a null value is passed, the domeCircleColor will be Theme.primaryColor |
| domeCircleSize | double | The size of the inner circle representing a seleted tab. Note that domeCircleSize must be less than or equal to (barHeight + domeHeight) |
| margin | EdgeInsets | Spacing around the bar |
| barColor | Color | specify a color to be used as a background color, Default is Theme.bottomAppBarColor |
| tabs | List | List of MoltenTab, each wil have an icon as the main widget, selcted color and unselected color |
| selectedIndex | int | The currently selected tab |
| onTabChange | Function(int index) | callback function that will be triggered whenever a [MoltenTab] is clicked, and will return it's index. |
| curve | Curve | Select a Curve value for the dome animation. Default is Curves.linear |
| duration | Duration | How long the animation should last, Default is Duration(milliseconds: 150) |
| borderSize | double | Applied to all 4 border sides, Default is 0 |
| borderColor | Color | Applied to all border sides |
| borderRaduis | BorderRadius | How much each angle is curved. Note that high raduis values may decrease the dome width. |
MoltenTab's Attributes
| Attribute | Type | Description |
|---|---|---|
| icon | double | can be any widget, preferably an icon |
| selectedColor | double | The icon color when the tab is selected, White if not set |
| unselectedColor | double | The icon color when the tab is not selected, Grey if not set |
Example
You can find an example here
언어DartSwiftKotlinObjective-C
사용 중인 의존성
의존성 목록 1 개
- flutter
{"sdk":"flutter"}
프로젝트에 맞는 저장소를 선택하려면?
사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
- 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
- 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
- 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.
출처 및 관리
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗


