Page Install. Make agreement area more visible

This commit is contained in:
grummbeer 2023-06-06 11:28:20 +02:00
parent 5b74e30b23
commit c78e7ec49f

View File

@ -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(