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
MHosssam
2021-09-29 11:57:16 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2021-09-29 11:57:16 +0200
Commit
f8b256af06e87eb6e8ec8cf2616a0631dec154c0
f8b256af
1 parent
8a8c6424
change updateLocale to future
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
lib/get_navigation/src/extension_navigation.dart
lib/get_navigation/src/extension_navigation.dart
View file @
f8b256a
...
...
@@ -1055,9 +1055,9 @@ you can only use widgets and widget functions here''';
}
}
void
updateLocale
(
Locale
l
)
{
Future
<
void
>
updateLocale
(
Locale
l
)
async
{
Get
.
locale
=
l
;
forceAppUpdate
();
await
forceAppUpdate
();
}
/// As a rule, Flutter knows which widget to update,
...
...
@@ -1073,8 +1073,8 @@ you can only use widgets and widget functions here''';
/// reconstruct the application from the sketch, use this with caution.
/// Your entire application will be rebuilt, and touch events will not
/// work until the end of rendering.
void
forceAppUpdate
()
{
engine
!.
performReassemble
();
Future
<
void
>
forceAppUpdate
()
async
{
await
engine
!.
performReassemble
();
}
void
appUpdate
()
=>
_getxController
.
update
();
...
...
Please
register
or
login
to post a comment