From 09fe2cda53bee17d7b363d9a2f7f659cac501c2c Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Wed, 12 Jun 2024 11:47:45 -0400 Subject: [PATCH] more ui changes to ota --- lib/Frontend/pages/ota_update.dart | 32 ++++++++++++++++-------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/lib/Frontend/pages/ota_update.dart b/lib/Frontend/pages/ota_update.dart index 326cc474..a87bc823 100644 --- a/lib/Frontend/pages/ota_update.dart +++ b/lib/Frontend/pages/ota_update.dart @@ -104,27 +104,29 @@ class _OtaUpdateState extends ConsumerState { direction: Axis.vertical, children: [ if ([OtaState.standby, OtaState.manual].contains(otaState)) ...[ - if (HiveProxy.getOrDefault(settings, showDebugging, defaultValue: showDebuggingDefault)) ...[ + if (!HiveProxy.getOrDefault(settings, showDebugging, defaultValue: showDebuggingDefault)) ...[ Expanded( - child: ListTile( - title: const Text("Debug"), - subtitle: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text("MD5: ${firmwareInfo?.md5sum}"), - Text("DL MD5: $downloadedMD5"), - Text("URL: ${baseStatefulDevice?.baseDeviceDefinition.fwURL}"), - Text("AVAILABLE VERSION: ${firmwareInfo?.version}"), - Text("CURRENT VERSION: ${baseStatefulDevice?.fwVersion.value}"), - Text("STATE: $otaState"), - ], + child: ListTile( + title: const Text("Debug"), + subtitle: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text("MD5: ${firmwareInfo?.md5sum}"), + Text("DL MD5: $downloadedMD5"), + Text("URL: ${baseStatefulDevice?.baseDeviceDefinition.fwURL}"), + Text("AVAILABLE VERSION: ${firmwareInfo?.version}"), + Text("CURRENT VERSION: ${baseStatefulDevice?.fwVersion.value}"), + Text("STATE: $otaState"), + ], + ), ), - )), + ), ], Expanded( + flex: 2, child: Center( child: LottieLazyLoad( - width: MediaQuery.of(context).size.width / 1.5, + width: MediaQuery.of(context).size.width, asset: Assets.tailcostickers.tailCoStickersFile144834357, ), ),