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(
Location locale,
String keymap, String keymap,
String layout, String layout,
String username,
bool enableSudo, bool enableSudo,
bool enableRoot, bool enableRoot,
String username, Desktop desktop,
String disk, String disk,
bool isEfi,
String bootloader,
String hostname,
bool ipv6,
bool enableTimeshift,
String rotational,
String diskSize, String diskSize,
Desktop currDesktop,
Location locale,
nextPage,
setDiskType, setDiskType,
String rotational, nextPage) {
bool isEfi,
) {
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