bottomBar method
dynamic
bottomBar(
- int _selectedIndex,
- dynamic _onItemTapped(
- int
)?, {
- TemplateRF? template,
})
Implementation
bottomBar(int _selectedIndex, Function(int)? _onItemTapped, {TemplateRF? template}) {
return BottomNavigationBar(
items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(Icons.info),
// title: Text('Why RF'), //changed to label
label : 'Why RF'
),
BottomNavigationBarItem(
icon: Icon(Icons.home),
// title: Text('Home'), //changed to label
label : 'Home'
),
BottomNavigationBarItem(
icon: Icon(Icons.widgets),
// title: Text('How To'), //changed to label
label : 'How To'
),
],
currentIndex: _selectedIndex,
selectedItemColor: Colors.blue,
onTap: _onItemTapped,
);
}