change message when install is finished, view #9

pull/2/head
axtlos 2 years ago
parent fb4ba2bd64
commit dd08aec1b2
No known key found for this signature in database
GPG Key ID: A468AFD71DD51D4A

@ -7,3 +7,4 @@ echo "[LOG]"
sleep 0.1
echo "[ERROR]"
sleep 1
echo "Installation finished! You may reboot now!"

@ -58,9 +58,11 @@ Widget install(
test(setOutput, running, setRunning, jsonPrefs);
return Column(
children: [
const Text(
'Installing...',
style: TextStyle(
Text(
output.toString().contains("Installation finished! You may reboot now!")
? "Installed!"
: "Installing...",
style: const TextStyle(
fontSize: 50,
fontWeight: FontWeight.bold,
color: Color.fromARGB(255, 169, 0, 255)),
@ -101,16 +103,20 @@ Widget install(
),
const SizedBox(height: 20),
Text(
"This may take a while...",
style: TextStyle(
output.toString().contains("Installation finished! You may reboot now!")
? "Installation finished! You may reboot now!"
: "This may take a while...",
style: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Color.fromARGB(255, 169, 0, 255),
),
),
Text(
"Please do not close this window until the installation is finished.",
style: TextStyle(
output.toString().contains("Installation finished! You may reboot now!")
? "You can now close this window and reboot your computer."
: "Please do not close this window until the installation is finished.",
style: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Color.fromARGB(255, 169, 0, 255),

Loading…
Cancel
Save