Questions tagged [bottom-navigation-bar]

86 questions
0
votes
0 answers

How to use BottomNavigationBar together with Navigator while ensuring that screens doesn't refresh?

I have a scenario where I need to use a BottomNavigationBar while ensuring the following: When changing tabs, where a tab is a particular screen, screens should not refresh, but the state of each screen should be maintained It must be possible to…
0
votes
0 answers

How to remove background default on the top left and top right radius bottom navbar of flutter

I am customizing the bottom navbar in flutter but I get a problem with the bottom navbar. I trying to remove the background of the bottom navbar but I can't remove it. What I was wrong.Thank you for supporting me. Below is my code and my…
0
votes
1 answer

Flutter bottom navigation bar didn't change color on selected if a put a switch

I have this code in dart for an app in flutter, in practice the problem is that in the navbar when I click an icon it does not change color, but only when I put the switch, If I leave it like this, it works: selectedItemColor: Colors.black, onTap:…
Alessandro
  • 13
  • 1
  • 3
0
votes
1 answer

Bottom Navigation Bar for All screen

My aim is to achieve same bottom navigation bar in all screen for that I'm using below methods and package. I am using below package persistent_bottom_nav_bar_v2: ^4.2.5 Issue is when I will redirect it from any screen using pushNewScreen(context,…
0
votes
0 answers

Is it possible to not preserve the state of specific screen in flutter

I have bottom navigations in my app it works well to maintain state of each screen/tabs using Offstage with stack. but for specific screen I want to not maintain the state and want to rebuild the screen when click on that nav/tab return Offstage( …
Alamgir Khan
  • 87
  • 1
  • 2
  • 9
0
votes
2 answers

Flutter BottomNavigationBar Animation not functioning

My code works fine where I use PageView to navigate between 3 screens. These 3 screens can be swiped right (and back) and also there is a BottomNavigationBar, which also works just fine, and it is connected to the items in the PageView. But it seems…
0
votes
1 answer

BottomBavigationBar background changing with new item

When I started to work on my app there were 3 items on the BottomNavigationBar. It worked well, then I added one more item and the background color changed to white. If I remove one item, the background color is set to mainBgColor This is my code so…
Ballazx
  • 431
  • 4
  • 12
0
votes
2 answers

How to Hide bottom navigation bar using provider flutter

I am working on a social media app which contains a home screen with bottom navbar and 5 pages . Although i am able to change the bool value to show or hide navbar under provider but the changes are not reflecting in widget . main.dart…
0
votes
2 answers

How to design this bottom navigation bar in flutter

Is there any dependency available that can easily design this bottom navigation bar?
0
votes
2 answers

Use onTap() or onPressed() with FlutterIcons on a Bottom Navigation Bar

I have a Bottom Navigation Bar using FlutterIcons and I would like to use either onTap() or onPressed() on them to switch between screens in the app. How can I achieve this? Here's my code snippet: bottomNavigationBar: CurvedNavigationBar( …
0
votes
1 answer

NestedScrollView with tabBar and bottomNavigationBar is not working

I am trying to use tabBarView & bottomNavigationBar in a nestedScrollView. Result is multiple tabBarviews and multiple bottomNavigationBars. pls, see My tabBar class is: class TabScreen extends StatefulWidget { TabScreen({Key? key}) :…
0
votes
1 answer

Flutter have one scaffold with same body and bottom navigation bar but different appbars and have a button on one of them which toggles its state

I have a Flutter app. On the main screen, it has an appbar, body, and bottomnavigation bar. On the bottom are four icons to flip through the different screens. One of the screens has an icon on the top that flips between regular view and favorites…
0
votes
1 answer

How to handle BottomNavigation Scaffold in MainActivity

I wrote a Jetpack Compose example to learn. I have a login screen and after login I have a bottomnavigation,topbar scaffold. This scaffold's visibility is setting in navigation sealed class like that below sealed class KutuphanemNavigationItem( …
0
votes
1 answer

Can’t get BottomNavigationView from Fragment

I have a BottomNavigationView (and the latest JetPack Navigation Component) created in MainActivity that I need to show/hide in different Fragments according to the authentication state of the user. Up to just a few days ago, I would just retrieve…
0
votes
1 answer

Data reset when moving from one to another fragment using Bottom Navigation Bar

I am using bottom navigation bar dan fragment in my project. When it moved from one to another fragment, I dont want to lose the state or data How can I do it? This is activity_main.xml