Matthias Nott
2026-06-11 39392618ecfeb89576387b0229fd1ebee6229946
lib/providers/providers.dart
....@@ -191,7 +191,10 @@
191191
192192 // --- Pro / Purchase Status ---
193193
194
-/// Whether the user has purchased PAILot Pro (full access).
195
-/// Defaults to true — PurchaseService sets to false after StoreKit verification
196
-/// confirms no purchase. This way dev/sideloaded builds work without IAP.
197
-final isProProvider = StateProvider<bool>((ref) => true);
194
+/// Pro / unlocked status. Real value is seeded in main.dart from
195
+/// PurchaseService.instance.isPro (SharedPrefs cache + StoreKit / Play Billing
196
+/// verification), and kept in sync via a listener. The `false` default is just
197
+/// a safe fallback for tests or any path that bypasses main(); dev/sideload
198
+/// behaviour is handled in PurchaseService.initialize() (debug builds without
199
+/// an available store get Pro granted automatically).
200
+final isProProvider = StateProvider<bool>((ref) => false);