getLocalComponentsList method
dynamic
getLocalComponentsList(
- dynamic context,
- dynamic valueColor
Implementation
getLocalComponentsList(context, valueColor) {
myLogAll('getLocalComponentsList');
if (getIsWeak() || _i10nMap.isEmpty) {
return [const SizedBox()];
}
return [
/*isProcessing
? const CircularProgressIndicator()
: const Icon(Icons.public_outlined),*/
//(_locale.languageCode == 'en')
(_locale == gEn)
? TextButton(
child: Text('中文',
style: TextStyle(color: fromBdckcolor(valueColor))),
//style: TextStyle(color: Colors.white)),
onPressed: () {
//setLocale(Locale('zh'));
setLocale(gZh);
},
)
: TextButton(
child: Text('EN',
style: TextStyle(color: fromBdckcolor(valueColor))),
//style: TextStyle(color: Colors.white)),
onPressed: () {
//setLocale(Locale('en'));
setLocale(gEn);
},
),
isNull(_globalParam[gMyid])
? const Text("")
: const MyIcon({
gValue: 0xf199,
gLabel: gLogout,
gAction: gLocalAction,
})
];
}