From fef7395144c05dfc76ca193ee87f9bbf7f9c2195 Mon Sep 17 00:00:00 2001 From: amy Date: Fri, 6 May 2022 09:03:40 +0000 Subject: [PATCH] add flatpak checkbox in misc --- lib/functions/misc.dart | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/lib/functions/misc.dart b/lib/functions/misc.dart index e20c434..05ca4d5 100644 --- a/lib/functions/misc.dart +++ b/lib/functions/misc.dart @@ -247,6 +247,32 @@ Widget misc( ), ), const SizedBox(height: 10), + Container( + padding: const EdgeInsets.all(2), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(5), + border: Border.all(color: Colors.black45), + color: const Color.fromARGB(100, 30, 30, 30), + ), + child: Tooltip( + message: "Installs flatpak and enables flathub", + child: CheckboxListTile( + title: const Text('Enable flatpak', + style: TextStyle(color: Colors.white)), + value: flatpak, + onChanged: () {}, + secondary: Container( + decoration: const BlxDecoration( + shape: BoxShape.circle, + color: Colors.white, + ), + padding: const EdgeInsets.fromLTRB(10, 10, 10, 13), + child: const Icon(Icons.box, color: Colors.black), + ), + ), + ), + ), + const SizedBox(height: 10), ], ), ),