diff --git a/lib/routes/get_routes/app_get_router_config.dart b/lib/routes/get_routes/app_get_router_config.dart index 32e2f55..5b4af97 100644 --- a/lib/routes/get_routes/app_get_router_config.dart +++ b/lib/routes/get_routes/app_get_router_config.dart @@ -11,32 +11,32 @@ import 'package:get/get.dart'; /// GetX Router Configuration /// WARN: Not Tested class AppGetRouterConfig { - static final List routes = [ - GetPage(name: 'login', page: () => LoginScreen()), - GetPage(name: 'forgot-password', page: () => ForgotPasswordScreen()), - GetPage(name: 'change-password', page: () => ChangePasswordScreen()), - GetPage(name: 'home', page: () => HomeScreen()), - GetPage(name: 'settings', page: () => SettingsScreen()), - GetPage(name: 'account', page: () => AccountScreen()), - GetPage(name: 'user', page: () => ListUserScreen()), - //TODO user create, edit, view in GetX - // GetPage(name:'user/:id', page:()=>ViewUserScreen()), - // GetPage(name: 'user/new', page: () => CreateUserScreen()), - // GetPage(name: 'user/:id/edit', page: () => EditUserScreen(id: "")), - - // last item is the 404 page - GetPage(name: 'not-found', page: () => const Scaffold(body: Center(child: Text('Not Found')))), - ]; - - static GetMaterialApp routeBuilder(ThemeData light, ThemeData dark, String language) { - return GetMaterialApp( - title: 'Flutter Bloc Advance', - theme: light, - darkTheme: dark, - themeMode: ThemeMode.system, - getPages: routes, - initialRoute: 'login', - unknownRoute: routes.last, - ); - } + // static final List routes = [ + // GetPage(name: 'login', page: () => LoginScreen()), + // GetPage(name: 'forgot-password', page: () => ForgotPasswordScreen()), + // GetPage(name: 'change-password', page: () => ChangePasswordScreen()), + // GetPage(name: 'home', page: () => HomeScreen()), + // GetPage(name: 'settings', page: () => SettingsScreen()), + // GetPage(name: 'account', page: () => AccountScreen()), + // GetPage(name: 'user', page: () => ListUserScreen()), + // //TODO user create, edit, view in GetX + // // GetPage(name:'user/:id', page:()=>ViewUserScreen()), + // // GetPage(name: 'user/new', page: () => CreateUserScreen()), + // // GetPage(name: 'user/:id/edit', page: () => EditUserScreen(id: "")), + // + // // last item is the 404 page + // GetPage(name: 'not-found', page: () => const Scaffold(body: Center(child: Text('Not Found')))), + // ]; + // + // static GetMaterialApp routeBuilder(ThemeData light, ThemeData dark, String language) { + // return GetMaterialApp( + // title: 'Flutter Bloc Advance', + // theme: light, + // darkTheme: dark, + // themeMode: ThemeMode.system, + // getPages: routes, + // initialRoute: 'login', + // unknownRoute: routes.last, + // ); + // } } diff --git a/sonar-project.properties b/sonar-project.properties index f5fd438..bb319fb 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -15,7 +15,7 @@ sonar.sources=lib/ sonar.tests=test/ #sonar.verbose=true # exclude: lib/generated and lib/main dart files -sonar.exclusions=assets/**,lib/main/**,test/**,linux/**,macos/**,windows/**,build/**,ios/**,android/**,web/**,example/**,packages/**,pubspec.lock,functions/**,lib/generated/**,lib/i18n/** +sonar.exclusions=assets/**,lib/main/**,test/**,linux/**,macos/**,windows/**,build/**,ios/**,android/**,web/**,example/**,packages/**,pubspec.lock,functions/**,lib/generated/**,lib/i18n/**,lib/routes/app_router.dart sonar.cpd.exclusions=lib/main/**