add tooltips for some buttons, #12

pull/2/head
axtlos 3 years ago
parent 172a4b2d66
commit 597b106c34
No known key found for this signature in database
GPG Key ID: A468AFD71DD51D4A

@ -1,2 +1,2 @@
Hostname: host Is efi: true

@ -91,6 +91,9 @@ Widget misc(
border: Border.all(color: Colors.black45), border: Border.all(color: Colors.black45),
color: const Color.fromARGB(100, 30, 30, 30), color: const Color.fromARGB(100, 30, 30, 30),
), ),
child: Tooltip(
message:
"Enables the root user, who has access to everything in the system",
child: CheckboxListTile( child: CheckboxListTile(
title: const Text('Enable root user', title: const Text('Enable root user',
style: TextStyle(color: Colors.white)), style: TextStyle(color: Colors.white)),
@ -115,6 +118,7 @@ Widget misc(
), ),
), ),
), ),
),
Visibility( Visibility(
child: const SizedBox(height: 10), visible: enableRoot), child: const SizedBox(height: 10), visible: enableRoot),
Visibility( Visibility(
@ -185,6 +189,8 @@ Widget misc(
border: Border.all(color: Colors.black45), border: Border.all(color: Colors.black45),
color: const Color.fromARGB(100, 30, 30, 30), color: const Color.fromARGB(100, 30, 30, 30),
), ),
child: Tooltip(
message: "Enables ipv6",
child: CheckboxListTile( child: CheckboxListTile(
title: const Text('Enable ipv6', title: const Text('Enable ipv6',
style: TextStyle(color: Colors.white)), style: TextStyle(color: Colors.white)),
@ -209,6 +215,7 @@ Widget misc(
), ),
), ),
), ),
),
const SizedBox(height: 10), const SizedBox(height: 10),
Container( Container(
padding: const EdgeInsets.all(2), padding: const EdgeInsets.all(2),
@ -217,6 +224,9 @@ Widget misc(
border: Border.all(color: Colors.black45), border: Border.all(color: Colors.black45),
color: const Color.fromARGB(100, 30, 30, 30), color: const Color.fromARGB(100, 30, 30, 30),
), ),
child: Tooltip(
message:
"Enables timeshift to automatically make backups",
child: CheckboxListTile( child: CheckboxListTile(
title: const Text('Enable timeshift', title: const Text('Enable timeshift',
style: TextStyle(color: Colors.white)), style: TextStyle(color: Colors.white)),
@ -230,7 +240,9 @@ Widget misc(
color: Colors.white, color: Colors.white,
), ),
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13), padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
child: const Icon(Icons.restore, color: Colors.black), child:
const Icon(Icons.restore, color: Colors.black),
),
), ),
), ),
), ),

@ -151,6 +151,9 @@ Widget users(setState, enableSudo, setPass, setConfirmPass, clearPass,
border: Border.all(color: Colors.black45), border: Border.all(color: Colors.black45),
color: const Color.fromARGB(100, 30, 30, 30), color: const Color.fromARGB(100, 30, 30, 30),
), ),
child: Tooltip(
message:
'Allows the user to gain root access using sudo',
child: CheckboxListTile( child: CheckboxListTile(
title: const Text('Enable sudo for user', title: const Text('Enable sudo for user',
style: TextStyle(color: Colors.white)), style: TextStyle(color: Colors.white)),
@ -175,6 +178,7 @@ Widget users(setState, enableSudo, setPass, setConfirmPass, clearPass,
), ),
), ),
), ),
),
const SizedBox(height: 10), const SizedBox(height: 10),
//const SizedBox(height: 10), //const SizedBox(height: 10),
], ],

Loading…
Cancel
Save