| .. | .. |
|---|
| 191 | 191 | |
|---|
| 192 | 192 | // --- Pro / Purchase Status --- |
|---|
| 193 | 193 | |
|---|
| 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); |
|---|