immi420 / crystal_navigation_bar

crystal bottom navigation bar
Other
8 stars 1 forks source link

White background underneath the navigation bar #2

Closed hazem-saeed closed 10 months ago

hazem-saeed commented 11 months ago

When I tried to use your package, a white background is beneath the navigation bar, although in the pics the background is transparent.

Here's my code:

@override
  Widget build(BuildContext context) {
    return Scaffold(
      extendBody: true,
      body: _pageChooser(pageIndex),
      bottomNavigationBar: CrystalNavigationBar(
        currentIndex: pageIndex,
        height: 10,
        indicatorColor: Theme.of(context).colorScheme.secondary,
        unselectedItemColor: disabledColor,
        backgroundColor: Theme.of(context).colorScheme.primary,
        onTap: (index) => setState(() => pageIndex = index),
        items: crystalNavigationBarIcons.map((item) =>
          CrystalNavigationBarItem(
            icon: item,
            selectedColor: Theme.of(context).colorScheme.secondary
          )
        ).toList()
      )
    );
  }

And one more question, is there a feature to hide the navigation bar when scrolling?

immi420 commented 10 months ago

Hey @hazem-saeed Unfortunately, I can't reproduce this issue using your code. can you provide your flutter version, material 3 support enabled, and more details?

Screen Shot 2024-01-10 at 1 40 23 AM
immi420 commented 10 months ago

Hide the navigation bar when scrolling is in my TODO for future updates.