0
0
Fluttermobile~5 mins

Bottom navigation bar in Flutter - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Bottom Navigation Bar in Flutter?
A Bottom Navigation Bar is a widget that displays navigation items at the bottom of the app screen. It helps users switch between different main sections of the app easily.
Click to reveal answer
beginner
Which Flutter widget is commonly used to create a Bottom Navigation Bar?
The BottomNavigationBar widget is used to create a Bottom Navigation Bar in Flutter.
Click to reveal answer
intermediate
How do you handle taps on Bottom Navigation Bar items in Flutter?
You use the onTap callback property of BottomNavigationBar. It gives the index of the tapped item, which you can use to update the UI or navigate.
Click to reveal answer
beginner
What property controls which Bottom Navigation Bar item is currently selected?
The currentIndex property controls which item is highlighted as selected in the Bottom Navigation Bar.
Click to reveal answer
beginner
Why is it important to keep Bottom Navigation Bar items to 3-5?
Keeping 3-5 items ensures the bar stays clear and easy to use. Too many items can clutter the bar and confuse users.
Click to reveal answer
Which widget creates a Bottom Navigation Bar in Flutter?
ADrawer
BAppBar
CBottomNavigationBar
DTabBar
What property do you use to know which Bottom Navigation Bar item is selected?
AselectedItem
BhighlightIndex
CactiveTab
DcurrentIndex
How do you respond when a user taps a Bottom Navigation Bar item?
AUse onTap callback
BUse onPressed callback
CUse onSelect callback
DUse onClick callback
What is a good maximum number of items for a Bottom Navigation Bar?
A3-5
BMore than 8
C6-8
D2
Where is the Bottom Navigation Bar usually placed in an app?
AOn the left side
BAt the bottom of the screen
CAt the top of the screen
DFloating in the middle
Explain how to create a Bottom Navigation Bar in Flutter and handle item taps.
Think about how you show different pages when tapping different icons.
You got /5 concepts.
    Why should you limit the number of items in a Bottom Navigation Bar? What happens if you add too many?
    Imagine a messy menu versus a clean one.
    You got /4 concepts.