Added details and sum row
This commit is contained in:
@@ -46,14 +46,14 @@ class _PointOverviewViewState extends State<PointOverviewView> {
|
|||||||
fit: BoxFit.fill,
|
fit: BoxFit.fill,
|
||||||
child: Text(
|
child: Text(
|
||||||
player,
|
player,
|
||||||
style:
|
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||||
const TextStyle(fontWeight: FontWeight.bold),
|
|
||||||
)),
|
)),
|
||||||
headingRowAlignment: MainAxisAlignment.center,
|
headingRowAlignment: MainAxisAlignment.center,
|
||||||
columnWidth: const IntrinsicColumnWidth(flex: 1)),
|
columnWidth: const IntrinsicColumnWidth(flex: 1)),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
rows: List<DataRow>.generate(
|
rows: [
|
||||||
|
...List<DataRow>.generate(
|
||||||
widget.gameSession.roundList.length,
|
widget.gameSession.roundList.length,
|
||||||
(roundIndex) {
|
(roundIndex) {
|
||||||
final round = widget.gameSession.roundList[roundIndex];
|
final round = widget.gameSession.roundList[roundIndex];
|
||||||
@@ -70,9 +70,8 @@ class _PointOverviewViewState extends State<PointOverviewView> {
|
|||||||
(playerIndex) {
|
(playerIndex) {
|
||||||
final score = round.scores[playerIndex];
|
final score = round.scores[playerIndex];
|
||||||
final update = round.scoreUpdates[playerIndex];
|
final update = round.scoreUpdates[playerIndex];
|
||||||
final saidCabo = round.caboPlayerIndex == playerIndex
|
final saidCabo =
|
||||||
? true
|
round.caboPlayerIndex == playerIndex ? true : false;
|
||||||
: false;
|
|
||||||
return DataCell(
|
return DataCell(
|
||||||
Center(
|
Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -111,7 +110,33 @@ class _PointOverviewViewState extends State<PointOverviewView> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
DataRow(
|
||||||
|
cells: [
|
||||||
|
const DataCell(Align(
|
||||||
|
alignment: Alignment.center,
|
||||||
|
child: Text(
|
||||||
|
'Σ',
|
||||||
|
style:
|
||||||
|
TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
)));
|
)),
|
||||||
|
...widget.gameSession.playerScores.map(
|
||||||
|
(score) => DataCell(
|
||||||
|
Center(
|
||||||
|
child: Text(
|
||||||
|
'$score',
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 20, fontWeight: FontWeight.bold),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.4.7+513
|
version: 0.4.7+515
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user