CoderUni / bottom_bar

Bottom bar helps create an optimized bottom navigation bar with beautiful animations
https://pub.dev/packages/bottom_bar
MIT License
15 stars 11 forks source link

Not suitable for special-shaped screens #10

Closed yanashenyang closed 9 months ago

CoderUni commented 9 months ago

Could you provide more details regarding the issue you're facing? Also, have you tried using SafeArea? (If the link doesn't work in China, try this one https://pythonjishu.com/ubgwxmweemjdnir/ and https://www.jianshu.com/p/48532989fd3c.

   bottomNavigationBar: SafeArea(
      child: BottomBar(
        selectedIndex: _currentPage,
        onTap: (int index) {
          _pageController.jumpToPage(index);
          setState(() => _currentPage = index);
        },
        items: <BottomBarItem>[
          BottomBarItem(
            icon: Icon(Icons.home),
            title: Text('Home'),
            activeColor: Colors.blue,
          ),
          BottomBarItem(
            icon: Icon(Icons.favorite),
            title: Text('Favorites'),
            activeColor: Colors.red,
          ),
        ],
      ),
    ),
CoderUni commented 9 months ago

Closing inactive issue.