|
|
|
@ -167,15 +167,14 @@ class HomeView extends GetView<HomeController> { |
|
|
|
// 中文注释:去除菜单模式,直接在同一行展示“语音打断”与开关 |
|
|
|
Obx(() => Row( |
|
|
|
mainAxisSize: MainAxisSize.min, // 中文注释:按需占宽,避免占满右侧 |
|
|
|
mainAxisAlignment: |
|
|
|
MainAxisAlignment.end, // 中文注释:靠右紧凑排布 |
|
|
|
mainAxisAlignment: MainAxisAlignment.end, // 中文注释:靠右紧凑排布 |
|
|
|
children: [ |
|
|
|
Icon( |
|
|
|
controller.isTtsInterruptEnabled.value |
|
|
|
? Icons.voice_over_off |
|
|
|
: Icons.voice_over_off_outlined, |
|
|
|
color: controller.isTtsInterruptEnabled.value |
|
|
|
? Theme.of(Get.context!).colorScheme.primary |
|
|
|
? Colors.blue |
|
|
|
: (isDarkMode ? Colors.grey[600] : Colors.grey[600]), |
|
|
|
size: 14.sp, // 中文注释:图标保持较小尺寸,减少占位 |
|
|
|
), |
|
|
|
@ -194,7 +193,7 @@ class HomeView extends GetView<HomeController> { |
|
|
|
child: Switch( |
|
|
|
value: controller.isTtsInterruptEnabled.value, |
|
|
|
onChanged: (value) => controller.toggleTtsInterrupt(), |
|
|
|
activeColor: Theme.of(Get.context!).colorScheme.primary, |
|
|
|
activeColor: Colors.blue, |
|
|
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, |
|
|
|
), |
|
|
|
), |
|
|
|
@ -631,7 +630,7 @@ class HomeView extends GetView<HomeController> { |
|
|
|
batteryColor = Colors.red[600]!; |
|
|
|
} |
|
|
|
|
|
|
|
bool isBatteryZero = batteryLevel == -1; |
|
|
|
bool isBatteryZero = batteryLevel == -1 || batteryLevel == 0; |
|
|
|
|
|
|
|
return Expanded( |
|
|
|
child: Padding( |
|
|
|
|