|
|
@ -1,4 +1,5 @@
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:adwaita_icons/adwaita_icons.dart';
|
|
|
|
|
|
|
|
|
|
|
|
final _formKey = GlobalKey<FormState>();
|
|
|
|
final _formKey = GlobalKey<FormState>();
|
|
|
|
RegExp hostnameRegex = RegExp(
|
|
|
|
RegExp hostnameRegex = RegExp(
|
|
|
@ -16,7 +17,10 @@ Widget misc(
|
|
|
|
setConfirmRootPass,
|
|
|
|
setConfirmRootPass,
|
|
|
|
rootPass,
|
|
|
|
rootPass,
|
|
|
|
confirmRootPass,
|
|
|
|
confirmRootPass,
|
|
|
|
|
|
|
|
enableFlatpak,
|
|
|
|
|
|
|
|
setFlatpak,
|
|
|
|
next) {
|
|
|
|
next) {
|
|
|
|
|
|
|
|
bool flatpak = true;
|
|
|
|
return Column(
|
|
|
|
return Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -258,16 +262,21 @@ Widget misc(
|
|
|
|
message: "Installs flatpak and enables flathub",
|
|
|
|
message: "Installs flatpak and enables flathub",
|
|
|
|
child: CheckboxListTile(
|
|
|
|
child: CheckboxListTile(
|
|
|
|
title: const Text('Enable flatpak',
|
|
|
|
title: const Text('Enable flatpak',
|
|
|
|
style: TextStyle(color: Colors.white)),
|
|
|
|
style: TextStyle(color: Colors.white)),
|
|
|
|
value: flatpak,
|
|
|
|
value: enableFlatpak,
|
|
|
|
onChanged: () {},
|
|
|
|
onChanged: (bool? value) {
|
|
|
|
|
|
|
|
setFlatpak(value!);
|
|
|
|
|
|
|
|
},
|
|
|
|
secondary: Container(
|
|
|
|
secondary: Container(
|
|
|
|
decoration: const BlxDecoration(
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
|
|
|
|
padding: const EdgeInsets.fromLTRB(10, 10, 10, 13),
|
|
|
|
child: const Icon(Icons.box, color: Colors.black),
|
|
|
|
child: const AdwaitaIcon(
|
|
|
|
|
|
|
|
AdwaitaIcons.package_x_generic,
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|