change message when install is finished, view #9

pull/2/head
axtlos 3 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 sleep 0.1
echo "[ERROR]" echo "[ERROR]"
sleep 1 sleep 1
echo "Installation finished! You may reboot now!"

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

Loading…
Cancel
Save