add logging (locale is excluded because it doesn't work properly and will have to be redone)
parent
11e45199c5
commit
a381c1cf39
@ -0,0 +1,24 @@
|
|||||||
|
|
||||||
|
Chosen layout: at
|
||||||
|
Chosen variant: normal
|
||||||
|
Username: s
|
||||||
|
Enable sudo: true
|
||||||
|
Desktop: KDE Plasma
|
||||||
|
Hostname: n
|
||||||
|
Disks: /dev/sda
|
||||||
|
/dev/nvme0n1
|
||||||
|
|
||||||
|
Selected disk: /dev/nvme0n1
|
||||||
|
Partition info: 476.9G
|
||||||
|
|
||||||
|
Is efi: true
|
||||||
|
Json config: {"partition":{"device":"nvme0n1","mode":"auto","efi":true},"bootloader":{"type":"grub-efi","location":"/boot/efi"},"locale":{"locale":["en_US.UTF-8 UTF-8"],"keymap":"Af","timezone":"America"},"networking":{"hostname":"n","ipv6":false},"users":[{"name":"s","password":"$1$KRz8vYrK$mTO2iNwmZnkHTpevyAcHN0\n","hasroot":true}],"rootpass":"","desktop":"KDE Plasma","timeshift":true,"extra_packages":["firefox"]}
|
||||||
|
[LOG] doing thing
|
||||||
|
|
||||||
|
[ERROR] failed doing thing
|
||||||
|
|
||||||
|
[LOG]
|
||||||
|
|
||||||
|
[ERROR]
|
||||||
|
|
||||||
|
Installation finished! You may reboot now!
|
@ -1,25 +0,0 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
Widget layout(keymap, chosenLayout, showVariant) {
|
|
||||||
return Container(
|
|
||||||
color: const Color.fromARGB(100, 169, 0, 255),
|
|
||||||
padding: const EdgeInsets.all(8),
|
|
||||||
child: ElevatedButton(
|
|
||||||
onPressed: () {
|
|
||||||
chosenLayout = keymap;
|
|
||||||
showVariant();
|
|
||||||
},
|
|
||||||
style: TextButton.styleFrom(
|
|
||||||
primary: Colors.white,
|
|
||||||
backgroundColor: const Color.fromARGB(100, 169, 0, 255),
|
|
||||||
padding: const EdgeInsets.all(10),
|
|
||||||
),
|
|
||||||
child: Text(
|
|
||||||
keymap.layout,
|
|
||||||
style: const TextStyle(
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
String chosenVariant = "none";
|
|
||||||
|
|
||||||
String getChosenVariant() {
|
|
||||||
return chosenVariant;
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget variantButton(variant, nextPage) {
|
|
||||||
return Column(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
||||||
children: [
|
|
||||||
ElevatedButton(
|
|
||||||
onPressed: () {
|
|
||||||
chosenVariant = variant;
|
|
||||||
nextPage();
|
|
||||||
},
|
|
||||||
child: Text(variant),
|
|
||||||
style: TextButton.styleFrom(
|
|
||||||
primary: Colors.white,
|
|
||||||
backgroundColor: const Color.fromARGB(100, 169, 0, 255),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget variant(keymap, nextPage) {
|
|
||||||
return Container(
|
|
||||||
padding: const EdgeInsets.all(8),
|
|
||||||
color: const Color.fromARGB(100, 169, 0, 255),
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Column(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
||||||
children: keymap.variant
|
|
||||||
.map<Widget>((variant) => variantButton(variant, nextPage))
|
|
||||||
.toList()),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Reference in New Issue