v0.0.4
bubbled_navigation_bar
아름다운 애니메이션 버블 모양 네비게이션 바. 색상, 배경색, 애니메이션 곡선, 애니메이션 지속 시간 조절 가능. controller 매개변수를 통해 PageView와 함께 작동합니다.
72좋아요 5930일 다운로드35Pub 점수
플랫폼 정보 없음
아름다운 애니메이션 버블 모양 네비게이션 바
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Flutter package for easy implementation of bubbled navigation bar.
Gif
dependencies:
bubbled_navigation_bar: ^0.0.3 #latest version
home: Scaffold(
bottomNavigationBar: BubbledNavigationBar(
defaultBubbleColor: Colors.blue,
onTap: (index) {
// handle tap
},
items: <BubbledNavigationBarItem>[
BubbledNavigationBarItem(
icon: Icon(CupertinoIcons.home, size: 30, color: Colors.red),
activeIcon: Icon(CupertinoIcons.home, size: 30, color: Colors.white),
title: Text('Home', style: TextStyle(color: Colors.white, fontSize: 12),),
),
BubbledNavigationBarItem(
icon: Icon(CupertinoIcons.phone, size: 30, color: Colors.purple),
activeIcon: Icon(CupertinoIcons.phone, size: 30, color: Colors.white),
title: Text('Phone', style: TextStyle(color: Colors.white, fontSize: 12),),
),
BubbledNavigationBarItem(
icon: Icon(CupertinoIcons.info, size: 30, color: Colors.teal),
activeIcon: Icon(CupertinoIcons.info, size: 30, color: Colors.white),
title: Text('Info', style: TextStyle(color: Colors.white, fontSize: 12),),
),
BubbledNavigationBarItem(
icon: Icon(CupertinoIcons.profile_circled, size: 30, color: Colors.cyan),
activeIcon: Icon(CupertinoIcons.profile_circled, size: 30, color: Colors.white),
title: Text('Profile', style: TextStyle(color: Colors.white, fontSize: 12),),
),
],
),
body: Container(color: Colors.blue,),
)
Way of use with PageView and sliding animation from example.gif you can see in example folder.
items: List of Widgets
initialIndex: Initial index of Curve
color: Color of NavigationBar, default Colors.white
defaultBubbleColor: background color of floating bubble
onTap: Function handling taps on items
animationCurve: Curves interpolating button change animation, default Curves.easeInOutQuad
animationDuration: Duration of button change animation, default Duration(milliseconds: 500)