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
Nicolas Lopez
2020-10-20 15:01:01 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
24b4cb8816c303c913eb9fe9928bc037a18a7234
24b4cb88
1 parent
1a16f6eb
Some extras generics
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
lib/get_navigation/src/extension_navigation.dart
lib/get_navigation/src/extension_navigation.dart
View file @
24b4cb8
...
...
@@ -104,7 +104,7 @@ extension ExtensionSnackbar on GetInterface {
return
key
?.
currentState
?.
push
(
SnackRoute
<
T
>(
snack:
snackbar
));
}
void
snackbar
(
void
snackbar
<
T
>
(
String
title
,
String
message
,
{
Color
colorText
,
...
...
@@ -199,11 +199,11 @@ extension ExtensionSnackbar on GetInterface {
userInputForm:
userInputForm
);
if
(
instantInit
)
{
showSnackbar
(
getBar
);
showSnackbar
<
T
>
(
getBar
);
}
else
{
routing
.
isSnackbar
=
true
;
SchedulerBinding
.
instance
.
addPostFrameCallback
((
_
)
{
showSnackbar
(
getBar
);
showSnackbar
<
T
>
(
getBar
);
});
}
}
...
...
@@ -484,7 +484,7 @@ extension GetNavigation on GetInterface {
if
(
preventDuplicates
&&
routeName
==
currentRoute
)
{
return
null
;
}
return
global
(
id
)?.
currentState
?.
push
(
return
global
(
id
)?.
currentState
?.
push
<
T
>
(
GetPageRoute
<
T
>(
opaque:
opaque
??
true
,
page:
()
=>
page
,
...
...
@@ -690,7 +690,7 @@ extension GetNavigation on GetInterface {
dynamic
arguments
,
int
id
,
})
{
return
global
(
id
)?.
currentState
?.
pushNamedAndRemoveUntil
(
return
global
(
id
)?.
currentState
?.
pushNamedAndRemoveUntil
<
T
>
(
newRouteName
,
predicate
??
(
_
)
=>
false
,
arguments:
arguments
,
...
...
@@ -730,7 +730,7 @@ extension GetNavigation on GetInterface {
}
if
(
canPop
)
{
if
(
global
(
id
)?.
currentState
?.
canPop
()
==
true
)
{
global
(
id
)?.
currentState
?.
pop
(
result
);
global
(
id
)?.
currentState
?.
pop
<
T
>
(
result
);
}
}
else
{
global
(
id
)?.
currentState
?.
pop
<
T
>(
result
);
...
...
@@ -855,7 +855,7 @@ extension GetNavigation on GetInterface {
var
routeName
=
"/
${page.runtimeType.toString()}
"
;
return
global
(
id
)?.
currentState
?.
pushAndRemoveUntil
<
T
>(
GetPageRoute
(
GetPageRoute
<
T
>
(
opaque:
opaque
??
true
,
popGesture:
popGesture
??
defaultPopGesture
,
page:
()
=>
page
,
...
...
Please
register
or
login
to post a comment