Jonatas

fix master

@@ -430,13 +430,12 @@ extension GetNavigation on GetInterface { @@ -430,13 +430,12 @@ extension GetNavigation on GetInterface {
430 binding: binding, 430 binding: binding,
431 settings: RouteSettings(arguments: arguments), 431 settings: RouteSettings(arguments: arguments),
432 fullscreenDialog: fullscreenDialog, 432 fullscreenDialog: fullscreenDialog,
433 - routeName: routename, 433 + routeName: routeName,
434 transition: transition ?? defaultTransition, 434 transition: transition ?? defaultTransition,
435 curve: curve ?? defaultTransitionCurve, 435 curve: curve ?? defaultTransitionCurve,
436 transitionDuration: duration ?? defaultTransitionDuration, 436 transitionDuration: duration ?? defaultTransitionDuration,
437 ), 437 ),
438 - predicate ?? route);  
439 - 438 + predicate ?? (route) => false);
440 } 439 }
441 440
442 /// Show a dialog. 441 /// Show a dialog.
@@ -52,7 +52,6 @@ class GetxController extends DisposableInterface { @@ -52,7 +52,6 @@ class GetxController extends DisposableInterface {
52 /// [ids] can be reused among `GetBuilders` like group tags. 52 /// [ids] can be reused among `GetBuilders` like group tags.
53 /// The update will only notify the Widgets, if [condition] is true. 53 /// The update will only notify the Widgets, if [condition] is true.
54 void update([List<String> ids, bool condition = true]) { 54 void update([List<String> ids, bool condition = true]) {
55 -  
56 if (!condition) { 55 if (!condition) {
57 return; 56 return;
58 } 57 }
@@ -109,21 +108,22 @@ class GetxController extends DisposableInterface { @@ -109,21 +108,22 @@ class GetxController extends DisposableInterface {
109 108
110 /// Remove this after checking the new implementation makes sense. 109 /// Remove this after checking the new implementation makes sense.
111 /// Uncomment this if you wanna control the removal of ids.. 110 /// Uncomment this if you wanna control the removal of ids..
112 -// bool _debugging = false;  
113 -// Future<void> _printCurrentIds() async {  
114 -// if (_debugging) return;  
115 -// _debugging = true;  
116 -// print('about to debug...');  
117 -// await Future.delayed(Duration(milliseconds: 10));  
118 -// int totalGroups = 0;  
119 -// _updatersGroupIds.forEach((key, value) {  
120 -// totalGroups += value.length;  
121 -// });  
122 -// int totalIds = _updatersIds.length;  
123 -// print(  
124 -// 'Total: ${totalIds + totalGroups}, in groups:$totalGroups, solo ids:$totalIds');  
125 -// _debugging = false;  
126 -// } 111 + /// bool _debugging = false;
  112 + /// Future<void> _printCurrentIds() async {
  113 + /// if (_debugging) return;
  114 + /// _debugging = true;
  115 + /// print('about to debug...');
  116 + /// await Future.delayed(Duration(milliseconds: 10));
  117 + /// int totalGroups = 0;
  118 + /// _updatersGroupIds.forEach((key, value) {
  119 + /// totalGroups += value.length;
  120 + /// });
  121 + /// int totalIds = _updatersIds.length;
  122 + /// print(
  123 + /// 'Total: ${totalIds + totalGroups},'+
  124 + /// 'in groups:$totalGroups, solo ids:$totalIds',);
  125 + /// _debugging = false;
  126 + /// }
127 } 127 }
128 128
129 class GetBuilder<T extends GetxController> extends StatefulWidget { 129 class GetBuilder<T extends GetxController> extends StatefulWidget {
@@ -157,10 +157,9 @@ class GetBuilder<T extends GetxController> extends StatefulWidget { @@ -157,10 +157,9 @@ class GetBuilder<T extends GetxController> extends StatefulWidget {
157 _GetBuilderState<T> createState() => _GetBuilderState<T>(); 157 _GetBuilderState<T> createState() => _GetBuilderState<T>();
158 } 158 }
159 159
160 -  
161 class _GetBuilderState<T extends GetxController> extends State<GetBuilder<T>> 160 class _GetBuilderState<T extends GetxController> extends State<GetBuilder<T>>
162 with GetStateUpdaterMixin { 161 with GetStateUpdaterMixin {
163 - GetxController controller; 162 + T controller;
164 163
165 bool isCreator = false; 164 bool isCreator = false;
166 VoidCallback remove; 165 VoidCallback remove;
@@ -230,7 +229,6 @@ class _GetBuilderState<T extends GetxController> extends State<GetBuilder<T>> @@ -230,7 +229,6 @@ class _GetBuilderState<T extends GetxController> extends State<GetBuilder<T>>
230 } 229 }
231 230
232 remove?.call(); 231 remove?.call();
233 -  
234 } 232 }
235 233
236 @override 234 @override