bottomBar method

dynamic bottomBar(
  1. int _selectedIndex,
  2. dynamic _onItemTapped(
    1. int
    )?, {
  3. 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,
  );
}