File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/ui/process_ui/widgets Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ class _LanguageSelectorState extends State<LanguageSelector> {
106
106
_getDataEntryLabel () {
107
107
String dataEntryLanguage = "" ;
108
108
context.watch <GlobalProvider >().chosenLang.forEach ((element) {
109
- String code = globalProvider.languageToCodeMapper[element] ! ;
109
+ String code = context. read < GlobalProvider >().selectedLanguage ;
110
110
dataEntryLanguage +=
111
111
" / ${AppLocalizations .of (context )!.dataEntryLanguage (code )}" ;
112
112
});
@@ -116,7 +116,7 @@ class _LanguageSelectorState extends State<LanguageSelector> {
116
116
_getNotificationLabel () {
117
117
String notificationLanguage = "" ;
118
118
context.watch <GlobalProvider >().chosenLang.forEach ((element) {
119
- String code = globalProvider.languageToCodeMapper[element] ! ;
119
+ String code = context. read < GlobalProvider >().selectedLanguage ;
120
120
notificationLanguage +=
121
121
" / ${AppLocalizations .of (context )!.notificationLanguage (code )}" ;
122
122
});
You can’t perform that action at this time.
0 commit comments