class AppConfig { // API 配置 static const String apiBaseUrl = 'http://10.0.2.2:8000'; // Android 模拟器访问本机 // 如果使用真机,改为你的电脑 IP,例如:'http://192.168.1.100:8000' // 图像配置 static const int imageMaxWidth = 640; static const int imageMaxHeight = 480; static const int imageQuality = 85; // 实时传输配置 static const Duration captureInterval = Duration(milliseconds: 500); // 每 500ms 捕获一帧 }