Refactor provider initialization to load only essential providers at startup. Introduce TabNavigationService for managing tab state and update screens to respond to tab changes. Clean up view models and navigation logic for improved performance and maintainability.
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ void main() async {
|
||||
|
||||
List<SingleChildWidget> providers = [
|
||||
Provider(create: (context) => prefs),
|
||||
...providersRemote,
|
||||
...essentialProviders, // Only load essential providers at startup
|
||||
];
|
||||
// Configure web URL strategy if running on web
|
||||
configureWebUrlStrategy();
|
||||
|
||||
Reference in New Issue
Block a user