feat: Add additional nav destinations for COM_ADMIN and use fontawesome icons #146
+77
−24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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