Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RafaelBarbosatec/a021e10a9e257a9573af04ff11cdfb00 to your computer and use it in GitHub Desktop.
Save RafaelBarbosatec/a021e10a9e257a9573af04ff11cdfb00 to your computer and use it in GitHub Desktop.
Widget _getBottomNavigationBa() {
return new BottomNavigationBar(
onTap: onTabTapped, // new
currentIndex: _currentIndex, // new
items: [
new BottomNavigationBarItem(
icon: const Icon(Icons.home),
title: Text('Recentes'),
backgroundColor: Colors.blue
),
new BottomNavigationBarItem(
icon: const Icon(Icons.list),
title: Text('Notícias'),
backgroundColor: Colors.blue[800]
),
new BottomNavigationBarItem(
icon: const Icon(Icons.info),
title: Text('Sobre'),
backgroundColor: Colors.blue
)
],
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment