fix languages in settings
This commit is contained in:
parent
6424e82d54
commit
023db31270
4 changed files with 159 additions and 41 deletions
|
|
@ -14,7 +14,7 @@ class LanguageSettingPage extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _LanguageSettingPageState extends State<LanguageSettingPage> {
|
||||
final languageList = ['English', 'Tagalog', 'Hilogaynon (Ilonggo)', 'Cebuano (Bisaya)'];
|
||||
static const List<String> languageList = ['English', 'Tagalog', 'Hilogaynon (Ilonggo)', 'Cebuano (Bisaya)'];
|
||||
late String currentLanguage = '';
|
||||
|
||||
void autoRun() async {
|
||||
|
|
@ -37,20 +37,76 @@ class _LanguageSettingPageState extends State<LanguageSettingPage> {
|
|||
const Gap(68),
|
||||
const CustomerTitleWidget(),
|
||||
const Gap(32),
|
||||
const TextWidget(text: 'Language'),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Current',
|
||||
value: currentLanguage,
|
||||
),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Other Options',
|
||||
value: currentLanguage,
|
||||
isSelection: true,
|
||||
selectionList: languageList,
|
||||
selectionFor: 'Language',
|
||||
)
|
||||
if (currentLanguage == languageList[0])
|
||||
Column(
|
||||
children: [
|
||||
const TextWidget(text: 'Language'),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Current',
|
||||
value: currentLanguage,
|
||||
),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Other Options',
|
||||
value: currentLanguage,
|
||||
isSelection: true,
|
||||
selectionList: languageList,
|
||||
selectionFor: 'Language',
|
||||
)
|
||||
],
|
||||
)
|
||||
else if (currentLanguage == languageList[1])
|
||||
Column(children: [
|
||||
const TextWidget(text: 'Wika'),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Kasalukuyan',
|
||||
value: currentLanguage,
|
||||
),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Iba pang mga Opsyon',
|
||||
value: currentLanguage,
|
||||
isSelection: true,
|
||||
selectionList: languageList,
|
||||
selectionFor: 'Language',
|
||||
)
|
||||
])
|
||||
else if (currentLanguage == languageList[2])
|
||||
Column(children: [
|
||||
const TextWidget(text: 'Lenggwahe'),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Ang Subong',
|
||||
value: currentLanguage,
|
||||
),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Iban pa nga mga Opsyon',
|
||||
value: currentLanguage,
|
||||
isSelection: true,
|
||||
selectionList: languageList,
|
||||
selectionFor: 'Language',
|
||||
)
|
||||
])
|
||||
else if (currentLanguage == languageList[3])
|
||||
Column(children: [
|
||||
const TextWidget(text: 'Pinulongan'),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Ang Karon',
|
||||
value: currentLanguage,
|
||||
),
|
||||
const Gap(16),
|
||||
SettingsMenuWidget(
|
||||
title: 'Uban pa na mga Opsyon',
|
||||
value: currentLanguage,
|
||||
isSelection: true,
|
||||
selectionList: languageList,
|
||||
selectionFor: 'Language',
|
||||
)
|
||||
])
|
||||
],
|
||||
)),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue