AppRouter class which holds the routing configuration. This class now uses a ShellRoute to build the top and bottom navigation bars
global.dart removes the page and index getters and setters. These are handled in their respective blocs. athleteList is left behind because it is needed for the athlete page features
app_routing.dart is now renamed to EntryApp which passes in the _appRouter to the MaterialApp
Removed Global() instance from all other pages along with global.buildPage()
The top and bottom navigation has their own blocs to handle selection updates
SharedPreferences is used to store the last selected item. That way when the page is reloaded the selected item will be loaded
Barreled files for cleaner namespace
Removed unused v1app and all other widgets that depend on it since it was deprecated from this branch
Fixes Jira Ticket #
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Is this a UI Change? If so please include screenshot of before and after states below
How Has This Been Tested?
Ran the app on chrome using web-server
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have assigned 2 reviewers to check my work
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Description
This PR addresses how our routing is structured:
AppRouter
class which holds the routing configuration. This class now uses aShellRoute
to build the top and bottom navigation barsglobal.dart
removes the page and index getters and setters. These are handled in their respective blocs.athleteList
is left behind because it is needed for the athlete page featuresapp_routing.dart
is now renamed toEntryApp
which passes in the_appRouter
to theMaterialApp
Global()
instance from all other pages along withglobal.buildPage()
SharedPreferences
is used to store the last selected item. That way when the page is reloaded the selected item will be loadedv1app
and all other widgets that depend on it since it was deprecated from this branchFixes Jira Ticket #
Type of change
Please delete options that are not relevant.
Is this a UI Change? If so please include screenshot of before and after states below
How Has This Been Tested?
Ran the app on chrome using web-server
Checklist: