it is almost finished (finally)

pull/2/head
axtlos 3 years ago
parent 3fd824cd31
commit 4df24284f1

@ -38,20 +38,23 @@ String diskType(String disk, String diskType) {
} }
Widget summary( Widget summary(
String keymap, Location locale,
String layout, String keymap,
bool enableSudo, String layout,
bool enableRoot, String username,
String username, bool enableSudo,
String disk, bool enableRoot,
String diskSize, Desktop desktop,
Desktop currDesktop, String disk,
Location locale, bool isEfi,
nextPage, String bootloader,
setDiskType, String hostname,
String rotational, bool ipv6,
bool isEfi, bool enableTimeshift,
) { String rotational,
String diskSize,
setDiskType,
nextPage) {
getDiskType(setDiskType, disk); getDiskType(setDiskType, disk);
return Column( return Column(
children: [ children: [
@ -201,7 +204,7 @@ Widget summary(
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
currDesktop.name, desktop.name,
style: const TextStyle( style: const TextStyle(
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
@ -211,7 +214,7 @@ Widget summary(
], ],
), ),
), ),
const SizedBox(height: 10), //const SizedBox(height: 10),
Container( Container(
padding: const EdgeInsets.all(10), padding: const EdgeInsets.all(10),
decoration: BoxDecoration( decoration: BoxDecoration(
@ -248,6 +251,42 @@ Widget summary(
], ],
), ),
), ),
//const SizedBox(height: 10),
Container(
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
border: Border.all(color: Colors.black),
color: const Color.fromARGB(255, 30, 30, 30),
boxShadow: const [
BoxShadow(
color: Colors.black,
blurRadius: 2,
offset: Offset(-2, 3),
),
],
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text(
"Misc:",
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Color.fromARGB(255, 169, 0, 255),
),
),
const SizedBox(height: 10),
infoTextTemplate("Hostname", hostname),
const SizedBox(height: 10),
infoTextTemplate("Enable IPv6", ipv6.toString()),
const SizedBox(height: 10),
infoTextTemplate(
"Enable timeshift", enableTimeshift.toString()),
],
),
),
], ],
), ),
), ),

@ -433,41 +433,50 @@ class _JadeguiState extends State<Jadegui> {
}); });
}); });
widget = summary( widget = summary(
getSelectedLocPack(),
getChosenLayout(), getChosenLayout(),
getChosenVariant(), getChosenVariant(),
username,
enableSudo, enableSudo,
enableRoot, enableRoot,
username, currDesktop,
selectedDisk, selectedDisk,
isEfi,
"grub-efi",
hostname,
ipv6,
enableTimeshift,
_diskType,
partitionInfo, partitionInfo,
currDesktop, (value) {
getSelectedLocPack(),
() {
setState(() { setState(() {
_selectedIndex = _selectedIndex + 1; _diskType = value;
}); });
}, },
(value) { () {
setState(() { setState(() {
_diskType = value; _selectedIndex = _selectedIndex + 1;
}); });
}, },
_diskType,
isEfi,
); );
break; break;
case 8: case 8:
/*widget = install( widget = install(
getSelectedLocPack(),
getChosenLayout(), getChosenLayout(),
getChosenVariant(), getChosenVariant(),
enableSudo,
enableRoot,
username, username,
selectedDisk, password,
enableSudo,
rootPass,
currDesktop, currDesktop,
getSelectedLocPack(), disks,
);*/ isEfi,
widget = Text("Install"); "grub-efi",
hostname,
ipv6,
enableTimeshift,
);
break; break;
default: default:
widget = const Text( widget = const Text(

Loading…
Cancel
Save