1.录像页面,根据个人赛和团队赛 动态 录像页标题

2.录像结束弹窗按钮文本修改
This commit is contained in:
2026-07-29 11:18:58 +08:00
parent a19d9dfa6d
commit d4920e2b98
3 changed files with 28 additions and 8 deletions
@@ -9,6 +9,11 @@ class RecordingContext {
required this.playerPhone,
this.laneNo,
this.status,
this.isTeam = false,
/// 对方队长
this.opponentName = '',
this.teamLeaderName = '',
});
const RecordingContext.empty()
@@ -20,7 +25,10 @@ class RecordingContext {
playerName = '',
playerPhone = '',
laneNo = null,
status = null;
status = null,
isTeam = false,
opponentName = '',
teamLeaderName = '';
final String eventTitle;
final String matchName;
@@ -31,8 +39,12 @@ class RecordingContext {
final String playerPhone;
final String? laneNo;
final String? status;
final bool isTeam;
final String opponentName;
final String teamLeaderName;
String get title => '$matchName $group';
String get title =>
isTeam ? '$teamLeaderName 队伍 vs $opponentName 队伍' : '$playerName $group';
String get address => venue;
@@ -11,8 +11,8 @@ Future<void> showRecordingSavedDialog(
return RecordDialog.showDouble(
context,
title: '本轮比赛视频已保存\n请选择后续录制信息',
leftText: '续本轮',
rightText: '制新轮',
leftText: '当前选手',
rightText: '新选手',
onLeftPressed: onContinueRound,
onRightPressed: onRecordNewRound,
barrierDismissible: false,