curved_navigation_bar
animated curved navigation bar in flutter.
add dependency
dependencies:
cu.rved_navigation_bar: ^0.1.2 #latest version
easy to use
scaffold(
bottomnavigationbar: cur.vednavigationbar(
backgroundcolor: colors.blueaccent,
items: <widget>[
icon(icons.add, size: 30),
icon(icons.list, size: 30),
icon(icons.compare_arrows, size: 30),
],
ontap: (index) {
//handle button tap
},
),
body: container(color: colors.blueaccent),
)
attributes
items: list of widgets
index: initial index
color: color of navigationbar, default colors.white
backgroundcolor: color of navigationbar’s background, default colors.blueaccent
ontap: function handling taps on items
curve: curves interpolating button change animation, default curves.easeoutcubic
duration: duration of button change animation, default duration(milliseconds: 600)
Comments are closed.