chore: 更新配置和环境变量适配云端 Supabase

This commit is contained in:
qzl
2026-03-10 17:44:08 +08:00
parent 95d6927724
commit 8da9377ed9
5 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ class Env {
const url = String.fromEnvironment('API_URL');
if (url.isNotEmpty) return url;
if (Platform.isAndroid) {
return 'http://10.0.2.2:5775';
return 'http://192.168.1.25:5775';
}
return 'http://localhost:5775';
}
+1
View File
@@ -108,6 +108,7 @@ class AppColors {
class AppSpacing {
AppSpacing._();
static const double none = 0.0;
static const double xs = 4.0;
static const double sm = 8.0;
static const double md = 12.0;
@@ -82,6 +82,7 @@ class AgUiService {
'audio': await MultipartFile.fromFile(
filePath,
filename: 'recording.wav',
contentType: DioMediaType('audio', 'wav'),
),
});
final response = await _apiClient.post<Map<String, dynamic>>(