Added details and sum row
This commit is contained in:
@@ -46,14 +46,14 @@ class _PointOverviewViewState extends State<PointOverviewView> {
|
||||
fit: BoxFit.fill,
|
||||
child: Text(
|
||||
player,
|
||||
style:
|
||||
const TextStyle(fontWeight: FontWeight.bold),
|
||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||
)),
|
||||
headingRowAlignment: MainAxisAlignment.center,
|
||||
columnWidth: const IntrinsicColumnWidth(flex: 1)),
|
||||
),
|
||||
],
|
||||
rows: List<DataRow>.generate(
|
||||
rows: [
|
||||
...List<DataRow>.generate(
|
||||
widget.gameSession.roundList.length,
|
||||
(roundIndex) {
|
||||
final round = widget.gameSession.roundList[roundIndex];
|
||||
@@ -70,9 +70,8 @@ class _PointOverviewViewState extends State<PointOverviewView> {
|
||||
(playerIndex) {
|
||||
final score = round.scores[playerIndex];
|
||||
final update = round.scoreUpdates[playerIndex];
|
||||
final saidCabo = round.caboPlayerIndex == playerIndex
|
||||
? true
|
||||
: false;
|
||||
final saidCabo =
|
||||
round.caboPlayerIndex == playerIndex ? true : false;
|
||||
return DataCell(
|
||||
Center(
|
||||
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"
|
||||
publish_to: 'none'
|
||||
|
||||
version: 0.4.7+513
|
||||
version: 0.4.7+515
|
||||
|
||||
environment:
|
||||
sdk: ^3.5.4
|
||||
|
||||
Reference in New Issue
Block a user