Page Install. Make agreement area more visible
This commit is contained in:
parent
5b74e30b23
commit
c78e7ec49f
@ -101,7 +101,6 @@ class _InstallPageBodyState extends State<_InstallPageBody>
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final double em = 13;
|
final double em = 13;
|
||||||
final isDarkTheme = MyTheme.currentThemeMode() == ThemeMode.dark;
|
final isDarkTheme = MyTheme.currentThemeMode() == ThemeMode.dark;
|
||||||
final dividerColor = isDarkTheme ? Colors.white70 : Colors.black87;
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: null,
|
backgroundColor: null,
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
@ -187,24 +186,45 @@ class _InstallPageBodyState extends State<_InstallPageBody>
|
|||||||
),
|
),
|
||||||
).marginOnly(top: 7),
|
).marginOnly(top: 7),
|
||||||
),
|
),
|
||||||
InkWell(
|
Container(
|
||||||
hoverColor: Colors.transparent,
|
padding: EdgeInsets.all(12),
|
||||||
onTap: () => launchUrlString('https://rustdesk.com/privacy'),
|
decoration: BoxDecoration(
|
||||||
child: Tooltip(
|
color: isDarkTheme
|
||||||
message: 'https://rustdesk.com/privacy',
|
? Color.fromARGB(135, 87, 87, 90)
|
||||||
child: Row(children: [
|
: Colors.grey[100],
|
||||||
Icon(Icons.launch_outlined, size: 16)
|
borderRadius: BorderRadius.circular(8),
|
||||||
.marginOnly(right: 5),
|
border: Border.all(color: Colors.grey),
|
||||||
Text(
|
),
|
||||||
translate('End-user license agreement'),
|
child: Row(
|
||||||
style: const TextStyle(
|
children: [
|
||||||
decoration: TextDecoration.underline),
|
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),
|
)).marginSymmetric(vertical: 2 * em),
|
||||||
Row(children: [Text(translate('agreement_tip'))])
|
|
||||||
.marginOnly(top: em),
|
|
||||||
Divider(color: dividerColor).marginSymmetric(vertical: 0.5 * em),
|
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user