From f28cf788428c8ab4465e51c62b63fc038b8d2971 Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Sun, 05 Jul 2026 13:29:28 +0200
Subject: [PATCH] Refactor upgrade flow and add debug state request handling
---
lib/services/purchase_service.dart | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/lib/services/purchase_service.dart b/lib/services/purchase_service.dart
index d6dbe83..bf73123 100644
--- a/lib/services/purchase_service.dart
+++ b/lib/services/purchase_service.dart
@@ -58,6 +58,16 @@
// rendering; restorePurchases() reconciles it with the platform stores.
final prefs = await SharedPreferences.getInstance();
_isPro = prefs.getBool(_kProCacheKey) ?? false;
+
+ // Screenshot / demo override: force free-tier rendering for store-listing
+ // captures. Build with: flutter run --dart-define=PAILOT_FORCE_FREE=true
+ const forceFree = bool.fromEnvironment('PAILOT_FORCE_FREE');
+ if (forceFree) {
+ _isPro = false;
+ await prefs.setBool(_kProCacheKey, false);
+ notifyListeners();
+ return;
+ }
notifyListeners();
// If the platform IAP layer isn't available (sideloaded dev build, no
--
Gitblit v1.3.1