Questions tagged [flutter-bottomnavigation]

281 questions
0
votes
2 answers

how to make child widget looks like its bigger then its parent widget in flutter

I want to make a custom navigationbar widget in Flutter. The blue circle widget size is bigger than its parent widget. But I don't know how to make it without any plugins. Please see the image for clarification.
0
votes
1 answer

I want to change container color but it doesn't work?

when i press the bottomnavigationbar item why it doesnt work Here the codes; Color? color; colorChange() { if (_pageIndex == 0) { color = AppColors.buttonColor; } if (_pageIndex == 1) { color = AppColors.buttonColor; …
0
votes
1 answer

How do I apply an auto_size_text inside a bottomNavigationBar text in flutter

How can I apply the auto_size_text property, or something similar to the texts inside the bottomNavigationBar in flutter. body: TabBarView( children: [ TabIndex(), TabPending(widget.selectedPageWithin), …
365posadas
  • 27
  • 5
0
votes
1 answer

flutter sticky bottom navigation for all screens

how do I created a bottom navigation bar fixed for all screens throughout the app and add a player on top of it fixed too. The desired goal is
Digamber negi
  • 407
  • 1
  • 7
  • 20
0
votes
1 answer

Is there any way to add box decoration to active BottomNavigationBar as an indicator in flutter?

Desired Output: when no BottomNavigationBarItem is selected When 1st BottomNavigationBarItem is selected Source Code: late int _selectedIndex = 0; static const List _pages = [ Icon(Icons.call, size: 150), Icon(Icons.camera,…
0
votes
1 answer

i tried to Run flutter i got this :Assertion failed:

I tried to Run flutter and i got this error: Another exception was thrown: Assertion failed: file:///home/moi/snap/flutter/common/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:189:9
0
votes
2 answers

BottomNavigation Pages is not reloading everytime when I tap

I have a MainPage with bottomnavigation bar with bottomnavigation items. I want to call APIs of bottomnavigation item pages whenever i tap on it i.e I want to reload page everytime I vist the page. But in my case its not reloading everytime but at…
Ajith S B
  • 11
  • 2
0
votes
2 answers

unable to use ImageIcon to display image as icon flutter

I have been trying out a bottom navigation bar which has a line indicator and am using this package https://pub.dev/packages/custom_line_indicator_bottom_navbar I am able to see icons if I use the predefined icons. But when I tried making my own…
0
votes
1 answer

How do I set the bottom navigation bar for a Flutter app page by page?

I would like to set whether to show the bottom navigation bar in a Flutter app page/screen/route by route. For example, when the user navigates through their files and clicks on folders, I want to show the bottom navigation bar. But when the user…
Marvin
  • 853
  • 2
  • 14
  • 38
0
votes
1 answer

How can I set the home button in the middle of the bottom bar to the default value?

I made a bottom bar using the DefaultTabController, but the home button was set to the middle. By the way, the default value is on the menu. How can I change the default value to the home button? this is main.dart import…
0
votes
1 answer

how can I create banner ads space under this bottom navigation bar?

This is my flutter music player app bottomNavigatiob bar code sample. I want to put ads under this bottom navigation bar. Can you please tell me how can I create ads space under this bottom navigation bar? Please help me to do…
0
votes
1 answer

Flutter navigation with the bottomNavigationBar between pages crash the app

I'm trying to create a BottomNavigationBar on my home page screen. The bar itself works perfectly fine, but it's the navigation between pages that crashes the application. My main.dart file returns a registration page, which then takes you to the…
Célia
  • 63
  • 1
  • 1
  • 5
0
votes
1 answer

The named parameter 'title' isn't defined. Try correcting the name to an existing named parameter's name

return BottomNavigationBar( type: BottomNavigationBarType.fixed, items: const [ BottomNavigationBarItem( icon: Icon(Icons.home), title: Text( 'Home', style:…
dh-pal
  • 1
0
votes
1 answer

Adding onPressed() function on navigation bar

I am trying to make a bottom navigation bar which has icons instead of buttons, I plan on making it functional through Gestures. I found this code snippet for a bottom navigation bar, but it uses indexs. I am trying to make the icons work (use…
0
votes
1 answer

DoubleTab CupertinoBottomNavigationBar to get to home page

I am using the CupertinoBottomNavigationBar in my app. Everything works well, however there is one feature I would like to implement. Taking Spotify as an example, you can push to new screens within an item of the BottomNavBar and always return to…
Nick
  • 71
  • 11