setUpBottomNavigation method

Widget setUpBottomNavigation(
  1. int currentIndex
)

Sets up the bottom navigation based on the current index.

Implementation

Widget setUpBottomNavigation(int currentIndex) {
  switch (currentIndex) {
    case 0:
      return RecentTestListView(doctor: doctor, organization: organization);
    case 1:
      return RecentTestListViewBabyBeat(
          doctor: doctor, organization: organizationBabyBeat);
    case 2:
      return SearchView(doctor: doctor, organization: organization);
    case 3:
      return ProfileView(
        doctor: doctor!,
        organization: organization,
        organizationBabyBeat: organizationBabyBeat,
      );
    default:
      return RecentTestListView(doctor: doctor, organization: organization);
  }
}