From 440d9372e86dca05078666b44bcabeaa565351ab Mon Sep 17 00:00:00 2001 From: vyPal <66716025+vyPal@users.noreply.github.com> Date: Wed, 8 May 2024 09:06:34 +0200 Subject: [PATCH] Disable update checking on preview builds --- lib/home.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/home.dart b/lib/home.dart index c7a5bab..140d10a 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -215,6 +215,9 @@ class HomePageState extends BaseState { }); } } else { + if (const String.fromEnvironment('BVS').contains("Preview")) { + return; + } final dio = Dio(); // Retrieve the package info