|
|
@ -6,6 +6,7 @@ import '../../../core/widgets/intro_overlay_builder.dart'; |
|
|
import '../controllers/home_controller.dart'; |
|
|
import '../controllers/home_controller.dart'; |
|
|
import '../../../routes/app_routes.dart'; |
|
|
import '../../../routes/app_routes.dart'; |
|
|
import '../../../core/widgets/common_bottom_nav.dart'; |
|
|
import '../../../core/widgets/common_bottom_nav.dart'; |
|
|
|
|
|
import '../../../data/models/appconfig_model.dart'; |
|
|
|
|
|
|
|
|
// 呼吸灯动画组件 |
|
|
// 呼吸灯动画组件 |
|
|
class AnimatedPulsing extends StatefulWidget { |
|
|
class AnimatedPulsing extends StatefulWidget { |
|
|
@ -533,8 +534,9 @@ class HomeView extends GetView<HomeController> { |
|
|
// 单端耳机只显示一个电池信息(优先显示左耳,如果左耳电量为0则显示右耳) |
|
|
// 单端耳机只显示一个电池信息(优先显示左耳,如果左耳电量为0则显示右耳) |
|
|
if (isSingleHeadset) ...[ |
|
|
if (isSingleHeadset) ...[ |
|
|
_buildCompactBatteryItem( |
|
|
_buildCompactBatteryItem( |
|
|
//label: 'deviceTypeBleBluetoothHeadset'.tr, |
|
|
label: controller |
|
|
label: '', |
|
|
.getCurrentDeviceType() |
|
|
|
|
|
.displayName, // 根据设备类型动态显示文本 |
|
|
batteryLevel: (leftBattery > 0 || rightBattery == 0) |
|
|
batteryLevel: (leftBattery > 0 || rightBattery == 0) |
|
|
? leftBattery |
|
|
? leftBattery |
|
|
: rightBattery, |
|
|
: rightBattery, |
|
|
|