Add Environment service with platform, build mode, and app info support

This commit is contained in:
2025-09-22 22:24:29 +02:00
parent a7470fc962
commit c7eafc4bd7
5 changed files with 127 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import 'package:fluttery/fluttery.dart';
/// Abstract Environment contract
abstract class Environment extends Service {
/// Platform checks
bool get isAndroid;
bool get isIOS;
/// Build mode
bool get isDebug;
bool get isRelease;
bool get isProfile;
/// App info
Future<void> loadPackageInfo();
String get appName;
String get packageName;
String get version;
String get buildNumber;
}