This commit is contained in:
2026-08-08 10:57:54 +08:00
parent d0d48c1ffc
commit 604af909b0
184 changed files with 12521 additions and 12722 deletions
+15
View File
@@ -0,0 +1,15 @@
class AppDefaults {
const AppDefaults._();
static const int singletonId = 1;
static const int defaultFreeTrialLimit = 2;
static const int nicknameRandomMin = 1000;
static const int nicknameRandomMax = 9999;
static const String defaultAvatarAssetPath =
'assets/images/avatar_default.png';
static const String localDatabaseName = 'arcx_local_first_db';
static const String avatarFileName = 'avatar.png';
}
+15
View File
@@ -0,0 +1,15 @@
import 'package:flutter/foundation.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:isar/isar.dart';
import '../../data/local/app_database.dart';
/// Exposes the opened Isar instance. Throws if [AppDatabase.open] has not run.
final isarProvider = FutureProvider<Isar>((ref) => AppDatabase.instance.open());
/// Apple IAP product identifier for the one-time unlock.
/// Configure the matching product in App Store Connect when publishing.
const String kUnlockProductId = 'com.shelingxingqiu.arcx.unlock';
/// Whether the build is a debug build (used to surface a dev-only unlock).
final bool kIsDebugBuild = kDebugMode;