fix: team import
This commit is contained in:
@@ -204,8 +204,10 @@ class DataTransferService {
|
|||||||
return Team(
|
return Team(
|
||||||
id: map['id'] as String,
|
id: map['id'] as String,
|
||||||
name: map['name'] as String,
|
name: map['name'] as String,
|
||||||
members: members,
|
|
||||||
createdAt: DateTime.parse(map['createdAt'] as String),
|
createdAt: DateTime.parse(map['createdAt'] as String),
|
||||||
|
color: AppColor.values.byName(map['color'] ?? AppColor.blue),
|
||||||
|
members: members,
|
||||||
|
score: map['score'] as int?,
|
||||||
);
|
);
|
||||||
}).toList();
|
}).toList();
|
||||||
}
|
}
|
||||||
@@ -231,6 +233,7 @@ class DataTransferService {
|
|||||||
final endedAt = map['endedAt'] != null
|
final endedAt = map['endedAt'] != null
|
||||||
? DateTime.parse(map['endedAt'] as String)
|
? DateTime.parse(map['endedAt'] as String)
|
||||||
: null;
|
: null;
|
||||||
|
final isTeamMatch = map['isTeamMatch'] as bool;
|
||||||
final notes = map['notes'] as String? ?? '';
|
final notes = map['notes'] as String? ?? '';
|
||||||
final scoresJson = map['scores'] as Map<String, dynamic>? ?? {};
|
final scoresJson = map['scores'] as Map<String, dynamic>? ?? {};
|
||||||
final scores = scoresJson.map(
|
final scores = scoresJson.map(
|
||||||
@@ -262,6 +265,7 @@ class DataTransferService {
|
|||||||
game: game,
|
game: game,
|
||||||
group: group,
|
group: group,
|
||||||
players: players,
|
players: players,
|
||||||
|
isTeamMatch: isTeamMatch,
|
||||||
teams: teams.isEmpty ? null : teams,
|
teams: teams.isEmpty ? null : teams,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
endedAt: endedAt,
|
endedAt: endedAt,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: tallee
|
name: tallee
|
||||||
description: "Tracking App for Card Games"
|
description: "Tracking App for Card Games"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 0.0.30+327
|
version: 0.0.30+330
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.8.1
|
sdk: ^3.8.1
|
||||||
|
|||||||
Reference in New Issue
Block a user