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
Jason Law
2020-07-17 21:09:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1e31572a9653c12f0c1d8ae7ca9c2e272325cb50
1e31572a
1 parent
8f063e3a
append on top of added translations
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
lib/src/get_main.dart
lib/src/get_main.dart
View file @
1e31572
...
...
@@ -655,6 +655,16 @@ class GetImpl implements GetService {
translations
.
addAll
(
tr
);
}
void
appendTranslations
(
Map
<
String
,
Map
<
String
,
String
>>
tr
)
{
tr
.
forEach
((
key
,
map
)
{
if
(
Get
.
translations
.
containsKey
(
key
))
{
Get
.
translations
[
key
].
addAll
(
map
);
}
else
{
Get
.
translations
[
key
]
=
map
;
}
});
}
void
changeTheme
(
ThemeData
theme
)
{
getxController
.
setTheme
(
theme
);
}
...
...
Please
register
or
login
to post a comment