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
Caio Louro
2022-01-28 10:39:11 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e60945ed5e4b8fdddcfced96a7e432055d078ed
5e60945e
1 parent
8867b13f
added null safety to Get.engine
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
lib/get_navigation/src/extension_navigation.dart
lib/get_navigation/src/extension_navigation.dart
View file @
5e60945
...
...
@@ -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.
...
...
Please
register
or
login
to post a comment