* refact: web desktop, web_id_input_tip Signed-off-by: fufesou <linlong1266@gmail.com> * Update en.rs * Update cn.rs * Update en.rs --------- Signed-off-by: fufesou <linlong1266@gmail.com> Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:auto_size_text/auto_size_text.dart';
 | |
| import 'package:flutter/material.dart';
 | |
| import 'package:get/get.dart';
 | |
| 
 | |
| import '../../common.dart';
 | |
| 
 | |
| Widget getConnectionPageTitle(BuildContext context, bool isWeb) {
 | |
|   return Row(
 | |
|     children: [
 | |
|       Expanded(
 | |
|           child: Row(
 | |
|         children: [
 | |
|           AutoSizeText(
 | |
|             translate('Control Remote Desktop'),
 | |
|             maxLines: 1,
 | |
|             style: Theme.of(context)
 | |
|                 .textTheme
 | |
|                 .titleLarge
 | |
|                 ?.merge(TextStyle(height: 1)),
 | |
|           ).marginOnly(right: 4),
 | |
|           Tooltip(
 | |
|             waitDuration: Duration(milliseconds: 300),
 | |
|             message: translate(isWeb ? "web_id_input_tip" : "id_input_tip"),
 | |
|             child: Icon(
 | |
|               Icons.help_outline_outlined,
 | |
|               size: 16,
 | |
|               color: Theme.of(context)
 | |
|                   .textTheme
 | |
|                   .titleLarge
 | |
|                   ?.color
 | |
|                   ?.withOpacity(0.5),
 | |
|             ),
 | |
|           ),
 | |
|         ],
 | |
|       )),
 | |
|     ],
 | |
|   );
 | |
| }
 |