@ -83,7 +83,7 @@ class HomeView extends GetView<HomeController> {
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
/ / 顶 部 标 题 栏
_buildAppBar ( isDarkMode ) ,
_buildAppBar ( context , isDarkMode ) ,
SizedBox ( height: 10. h ) ,
@ -154,7 +154,7 @@ class HomeView extends GetView<HomeController> {
}
/ / 顶 部 标 题 栏
Widget _buildAppBar ( bool isDarkMode ) {
Widget _buildAppBar ( BuildContext context , bool isDarkMode ) {
return Row (
mainAxisAlignment: MainAxisAlignment . spaceBetween ,
children: [
@ -189,6 +189,34 @@ class HomeView extends GetView<HomeController> {
color: isDarkMode ? Colors . white70 : Colors . grey [ 800 ] ,
) ,
) ,
SizedBox ( width: 2. w ) ,
Tooltip (
message: ' voice_interrupt_tip '
. tr , / / 开 启 后 : 播 报 时 会 降 低 拾 音 以 减 少 回 声 与 误 触 发 ; 需 要 打 断 时 请 按 设 备 按 键 或 说 唤 醒 词 。 关 闭 后 : 播 报 期 间 保 持 拾 音 , 可 能 出 现 回 声 或 误 触 发 。
triggerMode: TooltipTriggerMode . tap ,
preferBelow: true ,
verticalOffset: 10. h ,
padding:
EdgeInsets . symmetric ( horizontal: 12. w , vertical: 10. h ) ,
margin: EdgeInsets . symmetric ( horizontal: 12. w ) ,
showDuration: const Duration ( seconds: 5 ) ,
decoration: BoxDecoration (
color: isDarkMode
? const Color ( 0xFF1F1F1F )
: const Color ( 0xFF2A2A2A ) ,
borderRadius: BorderRadius . circular ( 10. r ) ,
) ,
textStyle: TextStyle (
fontSize: 12. sp ,
height: 1.35 ,
color: Colors . white ,
) ,
child: Icon (
Icons . info_outline ,
size: 14. sp ,
color: isDarkMode ? Colors . white54 : Colors . grey [ 600 ] ,
) ,
) ,
SizedBox ( width: 4. w ) , / / 中 文 注 释 : 文 字 与 开 关 间 距
Transform . scale (
scale: 0.7 , / / 中 文 注 释 : 缩 小 开 关 视 觉 尺 寸 , 保 持 紧 凑