| .. | .. |
|---|
| 1 | 1 | import 'dart:convert'; |
|---|
| 2 | 2 | |
|---|
| 3 | +import 'package:flutter/foundation.dart'; |
|---|
| 3 | 4 | import 'package:flutter/material.dart'; |
|---|
| 4 | 5 | import 'package:flutter_riverpod/flutter_riverpod.dart'; |
|---|
| 5 | 6 | import 'package:flutter_secure_storage/flutter_secure_storage.dart'; |
|---|
| .. | .. |
|---|
| 215 | 216 | // --- Pro / Purchase Status --- |
|---|
| 216 | 217 | |
|---|
| 217 | 218 | /// Whether the user has purchased PAILot Pro (full access). |
|---|
| 218 | | -/// Updated by PurchaseService after StoreKit verification. |
|---|
| 219 | | -final isProProvider = StateProvider<bool>((ref) => false); |
|---|
| 219 | +/// Defaults to true — PurchaseService sets to false after StoreKit verification |
|---|
| 220 | +/// confirms no purchase. This way dev/sideloaded builds work without IAP. |
|---|
| 221 | +final isProProvider = StateProvider<bool>((ref) => true); |
|---|