Refactoring
This commit is contained in:
@@ -41,7 +41,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
return CupertinoListTile(
|
return CupertinoListTile(
|
||||||
title: Row(
|
title: Row(
|
||||||
children: [
|
children: [
|
||||||
_getPlayerPlacement(index),
|
_getPlacementPrefix(index),
|
||||||
SizedBox(width: 5),
|
SizedBox(width: 5),
|
||||||
Text(
|
Text(
|
||||||
widget.gameSession.players[playerIndex],
|
widget.gameSession.players[playerIndex],
|
||||||
@@ -114,7 +114,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
return playerIndices;
|
return playerIndices;
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _getPlayerPlacement(int index) {
|
Widget _getPlacementPrefix(int index) {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
return Text(
|
return Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user