Skip to content

Custom bottom navigation bar with diamond icon in the middle.

License

Notifications You must be signed in to change notification settings

mahmoud-eslami/diamond_bottom_bar

 
 

Repository files navigation

Effective Dart Badge MIT License Badge

Pub.dev

Scaled List

Custom bottom navigation bar with diamond icon in the middle you can customize the number of items either be Five or three.

Image Image

Usage

  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Diamond Bottom Bar',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        body: _selectedWidget,
        bottomNavigationBar: DiamondBottomNavigation(
          itemIcons: const [
            Icons.home,
            Icons.notifications,
            Icons.message,
            Icons.account_box,
          ],
          centerIcon: Icons.place,
          selectedIndex: _selectedIndex,
          onItemPressed: onPressed,
        ),
      ),
    );
  }

Usage Scenarios

  • When You like to use Bottom navigation with Main Center Item in a diamong shape.

Contributers

Hosain Mohamed

Inspiration

About

Custom bottom navigation bar with diamond icon in the middle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dart 74.7%
  • HTML 22.1%
  • Swift 2.3%
  • Other 0.9%