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,25 +91,29 @@ Widget misc(
border: Border.all(color: Colors.black45),
color: const Color.fromARGB(100, 30, 30, 30),
),
child: CheckboxListTile(
title: const Text('Enable root user',
style: TextStyle(color: Colors.white)),
value: enableRoot,
onChanged: (bool? value) {
setRootUser(value!);
},
secondary: Container(
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
),
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
child: const Text(
'#',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
child: Tooltip(
message:
"Enables the root user, who has access to everything in the system",
child: CheckboxListTile(
title: const Text('Enable root user',
style: TextStyle(color: Colors.white)),
value: enableRoot,
onChanged: (bool? value) {
setRootUser(value!);
},
secondary: Container(
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
),
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
child: const Text(
'#',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
),
),
@ -185,25 +189,28 @@ Widget misc(
border: Border.all(color: Colors.black45),
color: const Color.fromARGB(100, 30, 30, 30),
),
child: CheckboxListTile(
title: const Text('Enable ipv6',
style: TextStyle(color: Colors.white)),
value: ipv6,
onChanged: (bool? value) {
setIpv6(value!);
},
secondary: Container(
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
),
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
child: const Text(
'v6',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
child: Tooltip(
message: "Enables ipv6",
child: CheckboxListTile(
title: const Text('Enable ipv6',
style: TextStyle(color: Colors.white)),
value: ipv6,
onChanged: (bool? value) {
setIpv6(value!);
},
secondary: Container(
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
),
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
child: const Text(
'v6',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
),
),
@ -217,20 +224,25 @@ Widget misc(
border: Border.all(color: Colors.black45),
color: const Color.fromARGB(100, 30, 30, 30),
),
child: CheckboxListTile(
title: const Text('Enable timeshift',
style: TextStyle(color: Colors.white)),
value: timeshift,
onChanged: (bool? value) {
setTimeshift(value!);
},
secondary: Container(
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
child: Tooltip(
message:
"Enables timeshift to automatically make backups",
child: CheckboxListTile(
title: const Text('Enable timeshift',
style: TextStyle(color: Colors.white)),
value: timeshift,
onChanged: (bool? value) {
setTimeshift(value!);
},
secondary: Container(
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
),
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
child:
const Icon(Icons.restore, color: Colors.black),
),
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
child: const Icon(Icons.restore, color: Colors.black),
),
),
),

@ -151,25 +151,29 @@ Widget users(setState, enableSudo, setPass, setConfirmPass, clearPass,
border: Border.all(color: Colors.black45),
color: const Color.fromARGB(100, 30, 30, 30),
),
child: CheckboxListTile(
title: const Text('Enable sudo for user',
style: TextStyle(color: Colors.white)),
value: enableSudo,
onChanged: (bool? value) {
setState(value!);
},
secondary: Container(
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
),
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
child: const Text(
'#',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
child: Tooltip(
message:
'Allows the user to gain root access using sudo',
child: CheckboxListTile(
title: const Text('Enable sudo for user',
style: TextStyle(color: Colors.white)),
value: enableSudo,
onChanged: (bool? value) {
setState(value!);
},
secondary: Container(
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
),
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
child: const Text(
'#',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
),
),

Loading…
Cancel
Save