Updated view
This commit is contained in:
@@ -8,6 +8,7 @@ import 'package:cabo_counter/presentation/views/home/active_game/mode_selection_
|
|||||||
import 'package:cabo_counter/presentation/views/home/active_game/points_view.dart';
|
import 'package:cabo_counter/presentation/views/home/active_game/points_view.dart';
|
||||||
import 'package:cabo_counter/presentation/views/home/active_game/round_view.dart';
|
import 'package:cabo_counter/presentation/views/home/active_game/round_view.dart';
|
||||||
import 'package:cabo_counter/presentation/views/home/create_game_view.dart';
|
import 'package:cabo_counter/presentation/views/home/create_game_view.dart';
|
||||||
|
import 'package:cabo_counter/services/config_service.dart';
|
||||||
import 'package:cabo_counter/services/local_storage_service.dart';
|
import 'package:cabo_counter/services/local_storage_service.dart';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:confetti/confetti.dart';
|
import 'package:confetti/confetti.dart';
|
||||||
@@ -65,6 +66,29 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.fromLTRB(10, 0, 0, 0),
|
||||||
|
child: Text(
|
||||||
|
AppLocalizations.of(context).game,
|
||||||
|
style: CustomTheme.rowTitle,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
CupertinoListTile(
|
||||||
|
title: Text(AppLocalizations.of(context).name),
|
||||||
|
trailing: Text(
|
||||||
|
gameSession.gameTitle,
|
||||||
|
style: TextStyle(color: CustomTheme.primaryColor),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
CupertinoListTile(
|
||||||
|
title: Text(AppLocalizations.of(context).mode),
|
||||||
|
trailing: Text(
|
||||||
|
gameSession.isPointsLimitEnabled
|
||||||
|
? '${ConfigService.getPointLimit()} ${AppLocalizations.of(context).points}'
|
||||||
|
: AppLocalizations.of(context).unlimited,
|
||||||
|
style: TextStyle(color: CustomTheme.primaryColor),
|
||||||
|
),
|
||||||
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
@@ -79,6 +103,8 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
int playerIndex = sortedPlayerIndices[index];
|
int playerIndex = sortedPlayerIndices[index];
|
||||||
return CupertinoListTile(
|
return CupertinoListTile(
|
||||||
|
padding:
|
||||||
|
const EdgeInsets.fromLTRB(14, 5, 14, 0),
|
||||||
title: Row(
|
title: Row(
|
||||||
children: [
|
children: [
|
||||||
_getPlacementTextWidget(index),
|
_getPlacementTextWidget(index),
|
||||||
|
|||||||
Reference in New Issue
Block a user