fix: 1、进入修改国际化语言界面重启APP界面变灰问题。2、wifi密码输错一次再次提交没反应的问题

This commit is contained in:
魏少阳 2024-12-14 09:20:21 +08:00
parent de24d8b3fb
commit 2636f19619
4 changed files with 4 additions and 6 deletions

View File

@ -86,8 +86,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver, BaseWidget {
locale: StoreService.to.getLanguageCode()!.isNotEmpty
? appDept.deptSupportedLocales
.where((Locale element) =>
element.languageCode.toString() ==
StoreService.to.getLanguageCode())
element.toString() == StoreService.to.getLanguageCode())
.first
: Get.deviceLocale,
// locale: Get.deviceLocale,

View File

@ -88,10 +88,10 @@ class GatewayConfigurationWifiLogic extends BaseGetXController {
// WIFI配网结果
Future<void> _replySenderConfiguringWifiResult(Reply reply) async {
final int status = reply.data[2];
state.sureBtnState.value = 0;
switch (status) {
case 0x00:
//
state.sureBtnState.value = 0;
cancelBlueConnetctToastTimer();
dismissEasyLoading();
final int secretKeyJsonLength = (reply.data[3] << 8) + reply.data[4];

View File

@ -39,8 +39,7 @@ String getLanguageCode() {
final Locale locale = StoreService.to.getLanguageCode()!.isNotEmpty
? appDept.deptSupportedLocales
.where((Locale element) =>
element.languageCode.toString() ==
StoreService.to.getLanguageCode())
element.toString() == StoreService.to.getLanguageCode())
.first
: Get.locale!; // Get.deviceLocale;
String languageCode =

View File

@ -104,7 +104,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# 1.0.85+2024120301完善网关功能
# 1.0.85+2024120401修复网关问题打包给谢敬调试
version: 1.0.85+2024121201
version: 1.0.85+2024121301
environment:
sdk: '>=2.12.0 <3.0.0'