import 'dart:async'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; import 'package:path_provider/path_provider.dart'; class AppEnvironment { static late final String cacheDir; static late final String supportDir; static late final List cameras; static Future init() async { cacheDir = (await getApplicationCacheDirectory()).path; supportDir = (await getApplicationSupportDirectory()).path; cameras = await availableCameras(); } } class AppState { static bool isAppInBackground = true; static bool isInBackgroundTask = false; static bool allowErrorTrackingViaSentry = false; static bool gotMessageFromServer = false; } class AppGlobalKeys { static final scaffoldMessengerKey = GlobalKey(); }