删除未使用的相机和记录类来重构记录功能;更新pubspec中的依赖项。Yaml为本地插件路径;简化MainActivity和相关类,以提高性能和可维护性。

This commit is contained in:
2026-07-09 16:17:34 +08:00
parent 75c42ea168
commit 6138eddc16
65 changed files with 3677 additions and 2672 deletions
+24 -1
View File
@@ -1,11 +1,15 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:recording_tool/app/router/app_navigator.dart';
import 'package:recording_tool/features/recording/model/model_recording_context.dart';
import 'package:recording_tool/features/recording/pages/page_record.dart';
class EventInfoPage extends StatelessWidget {
const EventInfoPage({super.key});
static const mockRtmpUrl =
'rtmp://192.168.1.245:19090/蔡依婷vs夏志豪_空中格斗赛_高中组/蔡依婷vs夏志豪_空中格斗赛_高中组';
static const _profile = EventProfile(
avatarLabel: '头像',
name: '王东方',
@@ -45,7 +49,12 @@ class EventInfoPage extends StatelessWidget {
];
void onItemTap(EventScheduleItem item) {
debugPrint('item tapped: ${item.name}');
AppNavigator.push(const RecordingPage());
AppNavigator.push(
RecordingPage(
recordingContext: item.toRecordingContext(profile: _profile),
streamUrl: mockRtmpUrl,
),
);
}
@override
@@ -125,6 +134,20 @@ class EventScheduleItem {
final String time;
final String? laneNo;
final String? status;
RecordingContext toRecordingContext({required EventProfile profile}) {
return RecordingContext(
eventTitle: profile.eventTitle,
matchName: name,
group: group,
venue: venue,
time: time,
playerName: profile.name,
playerPhone: profile.phone,
laneNo: laneNo,
status: status,
);
}
}
class _Header extends StatelessWidget {