diff --git a/flutter/lib/desktop/pages/install_page.dart b/flutter/lib/desktop/pages/install_page.dart index 4dda8cda8..707f5a8fb 100644 --- a/flutter/lib/desktop/pages/install_page.dart +++ b/flutter/lib/desktop/pages/install_page.dart @@ -101,7 +101,6 @@ class _InstallPageBodyState extends State<_InstallPageBody> Widget build(BuildContext context) { final double em = 13; final isDarkTheme = MyTheme.currentThemeMode() == ThemeMode.dark; - final dividerColor = isDarkTheme ? Colors.white70 : Colors.black87; return Scaffold( backgroundColor: null, body: SingleChildScrollView( @@ -187,24 +186,45 @@ class _InstallPageBodyState extends State<_InstallPageBody> ), ).marginOnly(top: 7), ), - InkWell( - hoverColor: Colors.transparent, - onTap: () => launchUrlString('https://rustdesk.com/privacy'), - child: Tooltip( - message: 'https://rustdesk.com/privacy', - child: Row(children: [ - Icon(Icons.launch_outlined, size: 16) - .marginOnly(right: 5), - Text( - translate('End-user license agreement'), - style: const TextStyle( - decoration: TextDecoration.underline), + Container( + padding: EdgeInsets.all(12), + decoration: BoxDecoration( + color: isDarkTheme + ? Color.fromARGB(135, 87, 87, 90) + : Colors.grey[100], + borderRadius: BorderRadius.circular(8), + border: Border.all(color: Colors.grey), + ), + child: Row( + children: [ + Icon(Icons.info_outline_rounded, size: 32) + .marginOnly(right: 16), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(translate('agreement_tip')) + .marginOnly(bottom: em), + InkWell( + hoverColor: Colors.transparent, + onTap: () => + launchUrlString('https://rustdesk.com/privacy'), + child: Tooltip( + message: 'https://rustdesk.com/privacy', + child: Row(children: [ + Icon(Icons.launch_outlined, size: 16) + .marginOnly(right: 5), + Text( + translate('End-user license agreement'), + style: const TextStyle( + decoration: TextDecoration.underline), + ) + ]), + ), + ), + ], ) - ]), - )).marginOnly(top: 2 * em), - Row(children: [Text(translate('agreement_tip'))]) - .marginOnly(top: em), - Divider(color: dividerColor).marginSymmetric(vertical: 0.5 * em), + ], + )).marginSymmetric(vertical: 2 * em), Row( children: [ Expanded(