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
Jonny Borges
2022-01-31 12:09:28 +0000
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2022-01-31 12:09:28 +0000
Commit
4a8b33893ed23da905e52f73eec95223eef867c5
4a8b3389
2 parents
e04ddb8f
f7621b25
Merge pull request #2156 from CaLouro/null-safe-Get.engine
Null safe Get.engine
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
lib/get_navigation/src/extension_navigation.dart
lib/get_navigation/src/root/get_cupertino_app.dart
lib/get_navigation/src/root/get_material_app.dart
lib/get_navigation/src/extension_navigation.dart
View file @
4a8b338
...
...
@@ -1059,7 +1059,7 @@ extension GetNavigationExt on GetInterface {
/// Your entire application will be rebuilt, and touch events will not
/// work until the end of rendering.
Future
<
void
>
forceAppUpdate
()
async
{
await
engine
!
.
performReassemble
();
await
engine
.
performReassemble
();
}
void
appUpdate
()
=>
_getxController
.
update
();
...
...
@@ -1173,12 +1173,9 @@ extension GetNavigationExt on GetInterface {
return
_theme
;
}
///The current [WidgetsBinding]
WidgetsBinding
?
get
engine
{
if
(
WidgetsBinding
.
instance
==
null
)
{
WidgetsFlutterBinding
();
}
return
WidgetsBinding
.
instance
;
/// The current null safe [WidgetsBinding]
WidgetsBinding
get
engine
{
return
WidgetsFlutterBinding
.
ensureInitialized
();
}
/// The window to which this binding is bound.
...
...
lib/get_navigation/src/root/get_cupertino_app.dart
View file @
4a8b338
...
...
@@ -199,7 +199,7 @@ class GetCupertinoApp extends StatelessWidget {
Get
.
routeInformationParser
=
null
;
},
initState:
(
i
)
{
Get
.
engine
!
.
addPostFrameCallback
((
timeStamp
)
{
Get
.
engine
.
addPostFrameCallback
((
timeStamp
)
{
onReady
?.
call
();
});
if
(
locale
!=
null
)
Get
.
locale
=
locale
;
...
...
lib/get_navigation/src/root/get_material_app.dart
View file @
4a8b338
...
...
@@ -215,7 +215,7 @@ class GetMaterialApp extends StatelessWidget {
initState:
(
i
)
{
// Get.routerDelegate = routerDelegate;
// Get.routeInformationParser = routeInformationParser;
Get
.
engine
!
.
addPostFrameCallback
((
timeStamp
)
{
Get
.
engine
.
addPostFrameCallback
((
timeStamp
)
{
onReady
?.
call
();
});
if
(
locale
!=
null
)
Get
.
locale
=
locale
;
...
...
Please
register
or
login
to post a comment