saluone_nav_bar 0.0.1 copy "saluone_nav_bar: ^0.0.1" to clipboard
saluone_nav_bar: ^0.0.1 copied to clipboard

Nav Bar ini terinspirasi dari Google Nav Bar

Getting Started #

Add this to your package's pubspec.yaml file:

...
dependencies:
  saluone_nav_bar: ^0.0.1
  

Now in your Dart code, you can use:

import 'package:saluone_nav_bar/saluone_nav_bar.dart';

Usage #

Style your tab globally with SNav's attribute, if you wish to style tab separately, use SButton's attribute

SNav(
  rippleColor: Colors.grey[800], // tab button ripple color when pressed
  hoverColor: Colors.grey[700], // tab button hover color
  haptic: true, // haptic feedback
  tabBorderRadius: 15, 
  tabActiveBorder: Border.all(color: Colors.black, width: 1), // tab button border
  tabBorder: Border.all(color: Colors.grey, width: 1), // tab button border
  tabShadow: [BoxShadow(color: Colors.grey.withOpacity(0.5), blurRadius: 8)], // tab button shadow
  curve: Curves.easeOutExpo, // tab animation curves
  duration: Duration(milliseconds: 900), // tab animation duration
  gap: 8, // the tab button gap between icon and text 
  color: Colors.grey[800], // unselected icon color
  activeColor: Colors.purple, // selected icon and text color
  iconSize: 24, // tab button icon size
  tabBackgroundColor: Colors.purple.withOpacity(0.1), // selected tab background color
  padding: EdgeInsets.symmetric(horizontal: 20, vertical: 5), // navigation bar padding
  tabs: [
    SButton(
      icon: LineIcons.home,
      text: 'Home',
    ),
    SButton(
      icon: LineIcons.heart_o,
      text: 'Likes',
    ),
    SButton(
      icon: LineIcons.search,
      text: 'Search',
    ),
    SButton(
      icon: LineIcons.user,
      text: 'Profile',
    )
  ]
)

View the example folder

There are 4 different use case included in the /example directory, go try it out!

2
likes
120
points
7
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Nav Bar ini terinspirasi dari Google Nav Bar

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on saluone_nav_bar