Load server configuration
This commit is contained in:
		@@ -5,8 +5,10 @@ import 'package:moneymgr_mobile/providers/auth_state.dart';
 | 
			
		||||
import 'package:moneymgr_mobile/routes/login/login_screen.dart';
 | 
			
		||||
import 'package:moneymgr_mobile/routes/login/manual_auth_screen.dart';
 | 
			
		||||
import 'package:moneymgr_mobile/routes/login/qr_auth_screen.dart';
 | 
			
		||||
import 'package:moneymgr_mobile/routes/profile/profile_screen.dart';
 | 
			
		||||
import 'package:moneymgr_mobile/routes/settings/settings_screen.dart';
 | 
			
		||||
import 'package:moneymgr_mobile/services/router/routes_list.dart';
 | 
			
		||||
import 'package:moneymgr_mobile/widgets/loaders/load_server_config.dart';
 | 
			
		||||
import 'package:moneymgr_mobile/widgets/scaffold_with_navigation.dart';
 | 
			
		||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
 | 
			
		||||
 | 
			
		||||
@@ -49,7 +51,7 @@ GoRouter router(Ref ref) {
 | 
			
		||||
    ),
 | 
			
		||||
    NavigationItem(
 | 
			
		||||
      path: profilePage,
 | 
			
		||||
      body: (_) => const Text("Profile"),
 | 
			
		||||
      body: (_) => ProfileScreen(),
 | 
			
		||||
      icon: Icons.person_outline,
 | 
			
		||||
      selectedIcon: Icons.person,
 | 
			
		||||
      label: 'Profile',
 | 
			
		||||
@@ -79,10 +81,12 @@ GoRouter router(Ref ref) {
 | 
			
		||||
            GoRoute(
 | 
			
		||||
              path: item.path,
 | 
			
		||||
              pageBuilder: (context, _) => NoTransitionPage(
 | 
			
		||||
                child: ScaffoldWithNavigation(
 | 
			
		||||
                  selectedIndex: index,
 | 
			
		||||
                  navigationItems: navigationItems,
 | 
			
		||||
                  child: item.body(context),
 | 
			
		||||
                child: LoadServerConfig(
 | 
			
		||||
                  child: ScaffoldWithNavigation(
 | 
			
		||||
                    selectedIndex: index,
 | 
			
		||||
                    navigationItems: navigationItems,
 | 
			
		||||
                    child: item.body(context),
 | 
			
		||||
                  ),
 | 
			
		||||
                ),
 | 
			
		||||
              ),
 | 
			
		||||
              routes: item.routes,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user