expanding_bottom_bar icon indicating copy to clipboard operation
expanding_bottom_bar copied to clipboard

Change the API so it follows the Flutter BottomNavigationBar

Open mg opened this issue 6 years ago • 1 comments

  • rename selectedIndex to currentIndex
  • rename onIndexChanged to onTap

Is there a reason for the API's to be different?

cheers

mg avatar Feb 18 '19 19:02 mg

Also:

  • BottomNavigationBarItem takes an Icon widget while ExpandingBottomBarItem takes IconData.
  • BottomNavigationBarItem uses a parameter named title and accepts a widget for the label while ExpandingBottomBarItem uses a parameter named text and accepts a string.

mg avatar Feb 18 '19 19:02 mg