Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonatas
2020-09-07 14:46:34 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d92bc47b5fb857c2ac8f911c4c3030ce98195960
d92bc47b
1 parent
a3906009
fix master
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
22 deletions
lib/src/navigation/extension_navigation.dart
lib/src/state_manager/simple/get_state.dart
lib/src/navigation/extension_navigation.dart
View file @
d92bc47
...
...
@@ -430,13 +430,12 @@ extension GetNavigation on GetInterface {
binding:
binding
,
settings:
RouteSettings
(
arguments:
arguments
),
fullscreenDialog:
fullscreenDialog
,
routeName:
route
n
ame
,
routeName:
route
N
ame
,
transition:
transition
??
defaultTransition
,
curve:
curve
??
defaultTransitionCurve
,
transitionDuration:
duration
??
defaultTransitionDuration
,
),
predicate
??
route
);
predicate
??
(
route
)
=>
false
);
}
/// Show a dialog.
...
...
lib/src/state_manager/simple/get_state.dart
View file @
d92bc47
...
...
@@ -52,7 +52,6 @@ class GetxController extends DisposableInterface {
/// [ids] can be reused among `GetBuilders` like group tags.
/// The update will only notify the Widgets, if [condition] is true.
void
update
([
List
<
String
>
ids
,
bool
condition
=
true
])
{
if
(!
condition
)
{
return
;
}
...
...
@@ -109,21 +108,22 @@ class GetxController extends DisposableInterface {
/// Remove this after checking the new implementation makes sense.
/// Uncomment this if you wanna control the removal of ids..
// bool _debugging = false;
// Future<void> _printCurrentIds() async {
// if (_debugging) return;
// _debugging = true;
// print('about to debug...');
// await Future.delayed(Duration(milliseconds: 10));
// int totalGroups = 0;
// _updatersGroupIds.forEach((key, value) {
// totalGroups += value.length;
// });
// int totalIds = _updatersIds.length;
// print(
// 'Total: ${totalIds + totalGroups}, in groups:$totalGroups, solo ids:$totalIds');
// _debugging = false;
// }
/// bool _debugging = false;
/// Future<void> _printCurrentIds() async {
/// if (_debugging) return;
/// _debugging = true;
/// print('about to debug...');
/// await Future.delayed(Duration(milliseconds: 10));
/// int totalGroups = 0;
/// _updatersGroupIds.forEach((key, value) {
/// totalGroups += value.length;
/// });
/// int totalIds = _updatersIds.length;
/// print(
/// 'Total: ${totalIds + totalGroups},'+
/// 'in groups:$totalGroups, solo ids:$totalIds',);
/// _debugging = false;
/// }
}
class
GetBuilder
<
T
extends
GetxController
>
extends
StatefulWidget
{
...
...
@@ -157,10 +157,9 @@ class GetBuilder<T extends GetxController> extends StatefulWidget {
_GetBuilderState
<
T
>
createState
()
=>
_GetBuilderState
<
T
>();
}
class
_GetBuilderState
<
T
extends
GetxController
>
extends
State
<
GetBuilder
<
T
>>
with
GetStateUpdaterMixin
{
GetxController
controller
;
T
controller
;
bool
isCreator
=
false
;
VoidCallback
remove
;
...
...
@@ -230,7 +229,6 @@ class _GetBuilderState<T extends GetxController> extends State<GetBuilder<T>>
}
remove
?.
call
();
}
@override
...
...
Please
register
or
login
to post a comment