This pull request introduces several changes to the support_sphere project, focusing on navigation, UI updates, and role-based access. The most important changes include adding role-based navigation, updating icons, and modifying the AppPage class to accommodate these changes.
Navigation Enhancements:
src/support_sphere/lib/constants/routes.dart: Added a new method getDestinations to generate a list of AppRoute objects based on the user's role. This method includes additional routes for users with the "COM_ADMIN" role. [1][2]
This pull request introduces several changes to the
support_sphere
project, focusing on navigation, UI updates, and role-based access. The most important changes include adding role-based navigation, updating icons, and modifying theAppPage
class to accommodate these changes.Navigation Enhancements:
src/support_sphere/lib/constants/routes.dart
: Added a new methodgetDestinations
to generate a list ofAppRoute
objects based on the user's role. This method includes additional routes for users with the "COM_ADMIN" role. [1] [2]UI Updates:
src/support_sphere/lib/presentation/components/icon_logo.dart
: ReplacedIonicons.earth_sharp
withFontAwesomeIcons.peopleRoof
in theIconLogo
component.src/support_sphere/lib/presentation/pages/main_app/app_page.dart
: Updated the_DeclareEmergencyButton
widget to display different icons based on the app mode, usingFontAwesomeIcons.houseCrack
andFontAwesomeIcons.houseCircleCheck
.Role-based Access:
src/support_sphere/lib/presentation/pages/main_app/app_page.dart
: Modified theAppPage
class to use the user's role to determine the available navigation destinations and the body content. This includes changes to theAppBodySelect
instantiation and usage. [1] [2] [3]Dependency Updates:
src/support_sphere/pubspec.yaml
: Added thefont_awesome_flutter
dependency to the project.These changes collectively enhance the navigation experience by tailoring it to user roles and updating the UI elements to improve visual feedback.
Related Issue
Resolves #145
Demo
Additional navigation bar for LEAP Committee
Change in emergency icon