Page Install. Checkboxes. Fix overflow, alignment.

This commit is contained in:
grummbeer 2023-06-05 12:18:19 +02:00
parent 88ce6e74a8
commit ba12c50dc1

View File

@ -149,62 +149,59 @@ class _InstallPageBodyState extends State<_InstallPageBody>
.marginOnly(left: em)) .marginOnly(left: em))
], ],
).marginSymmetric(vertical: 2 * em), ).marginSymmetric(vertical: 2 * em),
TextButton( InkWell(
onPressed: () => startmenu.value = !startmenu.value, borderRadius: BorderRadius.circular(6),
onTap: () => startmenu.value = !startmenu.value,
child: Row( child: Row(
children: [ children: [
Obx(() => Checkbox( Obx(() => Checkbox(
visualDensity:
VisualDensity(horizontal: -4, vertical: -4),
value: startmenu.value, value: startmenu.value,
onChanged: (b) { onChanged: (b) {
if (b != null) startmenu.value = b; if (b != null) startmenu.value = b;
})), }).marginOnly(right: 8)),
RichText( Expanded(
text: TextSpan( child: Text(translate('Create start menu shortcuts'))),
text: translate('Create start menu shortcuts'),
style: DefaultTextStyle.of(context).style,
),
),
], ],
), ),
), ).marginOnly(bottom: 7),
TextButton( InkWell(
onPressed: () => desktopicon.value = !desktopicon.value, borderRadius: BorderRadius.circular(6),
onTap: () => desktopicon.value = !desktopicon.value,
child: Row( child: Row(
children: [ children: [
Obx(() => Checkbox( Obx(() => Checkbox(
visualDensity:
VisualDensity(horizontal: -4, vertical: -4),
value: desktopicon.value, value: desktopicon.value,
onChanged: (b) { onChanged: (b) {
if (b != null) desktopicon.value = b; if (b != null) desktopicon.value = b;
})), }).marginOnly(right: 8)),
RichText( Expanded(child: Text(translate('Create desktop icon'))),
text: TextSpan(
text: translate('Create desktop icon'),
style: DefaultTextStyle.of(context).style,
),
),
], ],
), ),
), ),
Offstage( Offstage(
offstage: !Platform.isWindows, offstage: !Platform.isWindows,
child: TextButton( child: InkWell(
onPressed: () => driverCert.value = !driverCert.value, borderRadius: BorderRadius.circular(6),
onTap: () => driverCert.value = !driverCert.value,
child: Row( child: Row(
children: [ children: [
Obx(() => Checkbox( Obx(() => Checkbox(
visualDensity:
VisualDensity(horizontal: -4, vertical: -4),
value: driverCert.value, value: driverCert.value,
onChanged: (b) { onChanged: (b) {
if (b != null) driverCert.value = b; if (b != null) driverCert.value = b;
})), }).marginOnly(right: 8)),
RichText( Expanded(
text: TextSpan( child: Text(translate('idd_driver_tip')),
text: translate('idd_driver_tip'),
style: DefaultTextStyle.of(context).style,
),
), ),
], ],
), ),
), ).marginOnly(top: 7),
), ),
InkWell( InkWell(
hoverColor: Colors.transparent, hoverColor: Colors.transparent,