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

Loading…
Cancel
Save