So I am working on an app and have icons on the navigation bar and want the pages change when a user presses the icon but do have understand on how to do it in flutter. Here is an example, so I have the following code:
bottomNavigationBar: CurvedNavigationBar(
color: Color.fromRGBO(3, 9, 23, 1),
backgroundColor: Colors.transparent,
buttonBackgroundColor: Colors.white,
height: 70.0,
items: <Widget>[
Icon(
Icons.home,
size: 30.0,
color: Colors.blueAccent,
),
Icon(
Icons.chat_bubble,
size: 30.0,
color: Colors.blueAccent,
),
Icon(
FontAwesomeIcons.heart,
size: 30.0,
color: Colors.blueAccent,
),
Icon(
Icons.school,
size: 30.0,
color: Colors.blueAccent,
),
Icon(
Icons.show_chart,
size: 30.0,
color: Colors.blueAccent,
),
],
),
and when Icon() is pressed I want the user to go to a specific page.

