Browse Source

Merge branch 'new_dev' of https://github.com/deepcloud2048/deep_voice into new_dev

weicu
tanlongsheng 12 months ago
parent
commit
98579b523d
  1. 44
      lib/modules/translation/views/translation_view.dart
  2. 2
      pubspec.yaml

44
lib/modules/translation/views/translation_view.dart

@ -207,28 +207,28 @@ class TranslationView extends GetView<TranslationController> {
return Row(
children: [
// 悬浮窗切换按钮(仅在支持的模式下显示)
Obx(() {
if (Platform.isAndroid &&
(controller.currentMode.value == 'call' ||
controller.currentMode.value == 'audioVideo')) {
return IconButton(
icon: Icon(
controller.isFloatingWindowEnabled.value
? Icons.picture_in_picture
: Icons.picture_in_picture_alt_outlined,
color: controller.isFloatingWindowEnabled.value
? Colors.blue
: (isDarkMode ? Colors.white : Colors.black),
size: 24.sp,
),
onPressed: controller.toggleFloatingWindow,
tooltip: controller.isFloatingWindowEnabled.value
? '禁用悬浮窗'
: '启用悬浮窗',
);
}
return const SizedBox.shrink();
}),
if (Platform.isAndroid)
Obx(() {
if (controller.currentMode.value == 'call' ||
controller.currentMode.value == 'audioVideo') {
return IconButton(
icon: Icon(
controller.isFloatingWindowEnabled.value
? Icons.picture_in_picture
: Icons.picture_in_picture_alt_outlined,
color: controller.isFloatingWindowEnabled.value
? Colors.blue
: (isDarkMode ? Colors.white : Colors.black),
size: 24.sp,
),
onPressed: controller.toggleFloatingWindow,
tooltip: controller.isFloatingWindowEnabled.value
? '禁用悬浮窗'
: '启用悬浮窗',
);
}
return const SizedBox.shrink();
}),
IconButton(
icon: Icon(
Icons.radio_button_checked,

2
pubspec.yaml

@ -1,7 +1,7 @@
name: voitrans
description: "Voitrans - AI Voice Assistant."
publish_to: "none"
version: 1.0.17+46
version: 1.0.18+53
environment:
sdk: ">=3.3.0 <4.0.0"

Loading…
Cancel
Save