Jonny Borges

clear

@@ -9,8 +9,6 @@ void main() { @@ -9,8 +9,6 @@ void main() {
9 runApp(MyApp()); 9 runApp(MyApp());
10 } 10 }
11 11
12 -class Controller extends GetxController {}  
13 -  
14 class MyApp extends StatelessWidget { 12 class MyApp extends StatelessWidget {
15 const MyApp({Key? key}) : super(key: key); 13 const MyApp({Key? key}) : super(key: key);
16 14
@@ -10,10 +10,8 @@ abstract class IHomeProvider { @@ -10,10 +10,8 @@ abstract class IHomeProvider {
10 class HomeProvider extends GetConnect implements IHomeProvider { 10 class HomeProvider extends GetConnect implements IHomeProvider {
11 @override 11 @override
12 void onInit() { 12 void onInit() {
13 - httpClient.defaultDecoder = (val) {  
14 - print(val);  
15 - return CasesModel.fromJson(val as Map<String, dynamic>);  
16 - }; 13 + httpClient.defaultDecoder =
  14 + (val) => CasesModel.fromJson(val as Map<String, dynamic>);
17 httpClient.baseUrl = 'https://api.covid19api.com'; 15 httpClient.baseUrl = 'https://api.covid19api.com';
18 super.onInit(); 16 super.onInit();
19 } 17 }
@@ -8,14 +8,6 @@ import '../../../get_utils/get_utils.dart'; @@ -8,14 +8,6 @@ import '../../../get_utils/get_utils.dart';
8 import '../../get_navigation.dart'; 8 import '../../get_navigation.dart';
9 import '../router_report.dart'; 9 import '../router_report.dart';
10 10
11 -  
12 -  
13 -  
14 -  
15 -  
16 -  
17 -  
18 -  
19 class GetMaterialApp extends StatelessWidget { 11 class GetMaterialApp extends StatelessWidget {
20 final GlobalKey<NavigatorState>? navigatorKey; 12 final GlobalKey<NavigatorState>? navigatorKey;
21 final GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey; 13 final GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey;
@@ -130,7 +130,6 @@ class GetMaterialController extends FullLifeCycleController { @@ -130,7 +130,6 @@ class GetMaterialController extends FullLifeCycleController {
130 130
131 customTransition = config.customTransition; 131 customTransition = config.customTransition;
132 132
133 - //Get.setDefaultDelegate(routerDelegate);  
134 Get.smartManagement = config.smartManagement; 133 Get.smartManagement = config.smartManagement;
135 config.onInit?.call(); 134 config.onInit?.call();
136 135
@@ -141,13 +140,9 @@ class GetMaterialController extends FullLifeCycleController { @@ -141,13 +140,9 @@ class GetMaterialController extends FullLifeCycleController {
141 defaultPopGesture = config.popGesture ?? GetPlatform.isIOS; 140 defaultPopGesture = config.popGesture ?? GetPlatform.isIOS;
142 defaultTransitionDuration = 141 defaultTransitionDuration =
143 config.transitionDuration ?? Duration(milliseconds: 300); 142 config.transitionDuration ?? Duration(milliseconds: 300);
144 -  
145 - // defaultTransitionCurve = Curves.easeOutQuad;  
146 - // defaultDialogTransitionCurve = Curves.easeOutQuad;  
147 - // defaultDialogTransitionDuration = Duration(milliseconds: 300);  
148 } 143 }
149 144
150 - getThemeTransition() { 145 + Transition? getThemeTransition() {
151 final platform = Get.theme.platform; 146 final platform = Get.theme.platform;
152 final matchingTransition = 147 final matchingTransition =
153 Get.theme.pageTransitionsTheme.builders[platform]; 148 Get.theme.pageTransitionsTheme.builders[platform];
@@ -262,8 +257,6 @@ class GetMaterialController extends FullLifeCycleController { @@ -262,8 +257,6 @@ class GetMaterialController extends FullLifeCycleController {
262 ); 257 );
263 } 258 }
264 259
265 - // static GetDelegate? _delegate;  
266 -  
267 GetDelegate createDelegate({ 260 GetDelegate createDelegate({
268 GetPage<dynamic>? notFoundRoute, 261 GetPage<dynamic>? notFoundRoute,
269 List<GetPage> pages = const [], 262 List<GetPage> pages = const [],