144 lines
3.3 KiB
Dart
144 lines
3.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lanebow/models/score_model.dart';
|
|
import 'package:lanebow/models/participant_model.dart';
|
|
import 'package:lanebow/models/team_model.dart';
|
|
import 'package:lanebow/models/event_model.dart';
|
|
|
|
// 테스트 환경에서만 사용할 모의 클래스
|
|
// 실제 event_details_screen.dart 파일을 참조하지 않고 테스트에 필요한 기능만 제공
|
|
|
|
// 테스트용 EventDetailsScreen 모의 클래스
|
|
class EventDetailsScreen extends StatefulWidget {
|
|
final String eventId;
|
|
final String clubId;
|
|
|
|
const EventDetailsScreen({
|
|
Key? key,
|
|
required this.eventId,
|
|
required this.clubId,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
State<EventDetailsScreen> createState() => _EventDetailsScreenState();
|
|
}
|
|
|
|
// 테스트용 _EventDetailsScreenState 모의 클래스
|
|
class _EventDetailsScreenState extends State<EventDetailsScreen> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
// 테스트용 빈 화면 반환
|
|
return const Scaffold(body: SizedBox());
|
|
}
|
|
|
|
// 테스트에 필요한 메서드들만 모의 구현
|
|
Widget _buildInfoRow(IconData icon, String text, {bool isSelectable = false}) {
|
|
return const SizedBox();
|
|
}
|
|
|
|
Widget _buildBadge({
|
|
required String text,
|
|
required Color color,
|
|
IconData? icon,
|
|
bool outlined = true,
|
|
EdgeInsets? margin,
|
|
}) {
|
|
return const SizedBox();
|
|
}
|
|
|
|
Color _getParticipantStatusColor(String status) {
|
|
return Colors.grey;
|
|
}
|
|
|
|
IconData _getParticipantStatusIcon(String status) {
|
|
return Icons.person;
|
|
}
|
|
|
|
List<Participant> _getUnassignedParticipants() {
|
|
return [];
|
|
}
|
|
|
|
void _shareBasicInfo(String title, String type, String date, String location) {}
|
|
|
|
void _shareWithLink(String title, String type, String date, String location, String url) {}
|
|
|
|
void _shareDetailedInfo(String title, String type, String date, String location, String gameCount, String fee, String url) {}
|
|
|
|
void _showShareSuccessSnackBar() {}
|
|
|
|
Widget _buildTeamsTab() {
|
|
return const SizedBox();
|
|
}
|
|
|
|
void _editEvent() {}
|
|
|
|
void _addParticipant() {}
|
|
|
|
void _addScore() {}
|
|
|
|
void _generateTeams() {}
|
|
|
|
Color _getEventTypeColor(String type) {
|
|
return Colors.blue;
|
|
}
|
|
|
|
Color _getEventStatusColor(String status) {
|
|
return Colors.green;
|
|
}
|
|
|
|
void _shareEvent() {}
|
|
|
|
void _editParticipant(Participant participant) {}
|
|
|
|
void _removeParticipant(Participant participant) {}
|
|
|
|
void _showParticipantDetails(Participant participant) {}
|
|
|
|
Color _getRankColor(int rank) {
|
|
return Colors.amber;
|
|
}
|
|
|
|
Color _getScoreColor(int score) {
|
|
return Colors.blue;
|
|
}
|
|
|
|
void _editScore(Score score) {}
|
|
|
|
void _deleteScore(Score score) {}
|
|
|
|
void _showScoreDetails(Score score) {}
|
|
|
|
Future<void> _setEventReminders() async {}
|
|
|
|
List<Participant> _filteredParticipants() {
|
|
return [];
|
|
}
|
|
|
|
List<Participant> _sortedParticipants() {
|
|
return [];
|
|
}
|
|
|
|
List<Score> sortScores(bool withHandicap) {
|
|
return [];
|
|
}
|
|
|
|
List<Participant> _getTeamMembers(Team team) {
|
|
return [];
|
|
}
|
|
|
|
double _calculateTeamAverage(Team team) {
|
|
return 0.0;
|
|
}
|
|
|
|
void _saveTeams() {}
|
|
|
|
void _removeFromTeam(Team team, Participant participant) {}
|
|
|
|
void _showParticipantSelectionDialog(Team team) {}
|
|
|
|
void _showTeamSelectionDialog(Participant participant) {}
|
|
|
|
Widget _buildFilterChip({required String label, required VoidCallback onRemove}) {
|
|
return const SizedBox();
|
|
}
|
|
}
|