v1.0.7sweet_nav_bar
此包可通过几行代码构建渐变和浮动导航栏。
14喜欢 37近 30 天下载150Pub 分数
AndroidiOSWebmacOSWindowsLinux
此包可通过几行代码构建渐变和浮动导航栏。
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
To use this package, add sweet_nav_bar as a dependency in your pubspec.yaml file.
Here is How to use it, You can find Package API
bottomNavigationBar: SweetNavBar(
paddingGradientColor: iconLinearGradiant,
currentIndex: cIndex,
paddingBackgroundColor: Colors.red,
items: [
SweetNavBarItem(
sweetActive: const Icon(Icons.home),
sweetIcon: const Icon(
Icons.home_outlined,
),
sweetLabel: 'Home',
iconColors: iconLinearGradiant,
sweetBackground: Colors.red),
SweetNavBarItem(
sweetIcon: const Icon(Icons.business), sweetLabel: 'Business'),
SweetNavBarItem(
sweetIcon: const Icon(Icons.school), sweetLabel: 'School'),
],
onTap: (index) {
setState(() {
cIndex = index;
});
},
),