Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
nav_bar.dart File Reference
import package;
import material.dart;
import flutter_screenutil.dart;
import go_router.dart;
import theme;
import color_palette.dart;
Include dependency graph for nav_bar.dart:

Go to the source code of this file.

Classes

class  StatefulWidget
class  NavItem

Functions

override void initState ()
void _initializeAnimations ()
override void dispose ()
void _handleTap (int index) async
override Widget build (BuildContext context)
Widget _buildNavItem (int index)

Variables

class NavBar extends StatefulWidget _selectedIndex = 2
late List< AnimationController > _animationControllers
late List< Animation< double > > _scaleAnimations
final List< NavItem_navItems

Function Documentation

◆ _buildNavItem()

Widget _buildNavItem ( int index)

Definition at line 119 of file nav_bar.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _handleTap()

void _handleTap ( int index)

Definition at line 62 of file nav_bar.dart.

Here is the caller graph for this function:

◆ _initializeAnimations()

void _initializeAnimations ( )

Definition at line 35 of file nav_bar.dart.

Here is the caller graph for this function:

◆ build()

override Widget build ( BuildContext context)

Definition at line 82 of file nav_bar.dart.

Here is the call graph for this function:

◆ dispose()

override void dispose ( )

Definition at line 55 of file nav_bar.dart.

◆ initState()

override void initState ( )

Definition at line 30 of file nav_bar.dart.

Here is the call graph for this function:

Variable Documentation

◆ _animationControllers

late List<AnimationController> _animationControllers

Definition at line 18 of file nav_bar.dart.

◆ _navItems

final List<NavItem> _navItems
Initial value:
= [
NavItem(icon: Icons.speed_rounded, label: 'Speed'),
NavItem(icon: Icons.school_rounded, label: 'School'),
NavItem(icon: Icons.dashboard_rounded, label: 'Home'),
NavItem(icon: Icons.notifications_rounded, label: 'Alerts'),
NavItem(icon: Icons.settings_rounded, label: 'Settings'),
]
final String label

Definition at line 21 of file nav_bar.dart.

◆ _scaleAnimations

late List<Animation<double> > _scaleAnimations

Definition at line 19 of file nav_bar.dart.

◆ _selectedIndex

class NavBar extends StatefulWidget _selectedIndex = 2