自主任务接口接入和bug修复和工作记录页面
This commit is contained in:
@@ -5,6 +5,8 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_webrtc/flutter_webrtc.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
import 'package:maibu_satabot_v2/core/localization/app_localizations.dart';
|
||||
|
||||
/// 视频加载状态
|
||||
enum WebRTCLoadState { loading, playing, error }
|
||||
|
||||
@@ -424,17 +426,28 @@ class _WebRTCLocalPlayerState extends State<WebRTCLocalPlayer> {
|
||||
color: Colors.white38,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
const Text(
|
||||
'视频加载失败,请检查设备是否在线或重试',
|
||||
style: TextStyle(color: Colors.white70, fontSize: 14),
|
||||
Text(
|
||||
AppLocalizations.of(context).translate(
|
||||
'remote_control.video_load_failed',
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(
|
||||
color: Colors.white70,
|
||||
fontSize: 14,
|
||||
),
|
||||
),
|
||||
]
|
||||
: [
|
||||
const CircularProgressIndicator(color: Colors.white),
|
||||
const SizedBox(height: 12),
|
||||
const Text(
|
||||
'视频加载中...',
|
||||
style: TextStyle(color: Colors.white70, fontSize: 14),
|
||||
Text(
|
||||
AppLocalizations.of(
|
||||
context,
|
||||
).translate('remote_control.video_loading'),
|
||||
style: const TextStyle(
|
||||
color: Colors.white70,
|
||||
fontSize: 14,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user