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
4 years ago
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
4 years ago
Commit
328f851c5b99ca5902f5ed1001e88dd784adaa19
328f851c
2 parents
bd0888dc
f8b256af
Merge pull request #1893 from MHosssam/patch-1
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 @
328f851
...
...
@@ -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