diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 52bde3b..e3773d4 100644 --- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -52,9 +52,9 @@ { builder: (context, _) { List sortedPlayerIndices = _getSortedPlayerIndices(); return CupertinoPageScaffold( - navigationBar: CupertinoNavigationBar( - middle: Text(widget.gameSession.gameTitle), - ), - child: SafeArea( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Padding( - padding: const EdgeInsets.fromLTRB(10, 10, 0, 0), - child: Text( - 'Spieler:innen', - style: CustomTheme.rowTitle, - ), - ), - ListView.builder( - shrinkWrap: true, - itemCount: widget.gameSession.players.length, - itemBuilder: (BuildContext context, int index) { - int playerIndex = sortedPlayerIndices[index]; - return CupertinoListTile( - title: Row( - children: [ - _getPlacementPrefix(index), - const SizedBox(width: 5), - Text( - widget.gameSession.players[playerIndex], - style: - const TextStyle(fontWeight: FontWeight.bold), - ), - ], - ), - trailing: Row( - children: [ - const SizedBox(width: 5), - Text( - '${widget.gameSession.playerScores[playerIndex]} ' - 'Punkte') - ], - ), - ); - }, - ), - Padding( - padding: const EdgeInsets.fromLTRB(10, 10, 0, 0), - child: Text( - 'Runden', - style: CustomTheme.rowTitle, - ), - ), - ListView.builder( - shrinkWrap: true, - itemCount: widget.gameSession.roundNumber, - itemBuilder: (BuildContext context, int index) { - return Padding( - padding: const EdgeInsets.all(1), - child: CupertinoListTile( - title: Text( - 'Runde ${index + 1}', - ), - trailing: index + 1 != - widget.gameSession.roundNumber || - widget.gameSession.isGameFinished == true - ? (const Text('\u{2705}', - style: TextStyle(fontSize: 22))) - : const Text('\u{23F3}', - style: TextStyle(fontSize: 22)), - onTap: () async { - // ignore: unused_local_variable - final val = await Navigator.of(context, - rootNavigator: true) - .push( - CupertinoPageRoute( - fullscreenDialog: true, - builder: (context) => RoundView( - gameSession: widget.gameSession, - roundNumber: index + 1), - ), - ); - }, - )); - }, - ), - ], + navigationBar: CupertinoNavigationBar( + middle: Text(widget.gameSession.gameTitle), ), - ), - ); + child: SafeArea( + child: SingleChildScrollView( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.fromLTRB(10, 10, 0, 0), + child: Text( + 'Spieler:innen', + style: CustomTheme.rowTitle, + ), + ), + ListView.builder( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + itemCount: widget.gameSession.players.length, + itemBuilder: (BuildContext context, int index) { + int playerIndex = sortedPlayerIndices[index]; + return CupertinoListTile( + title: Row( + children: [ + _getPlacementPrefix(index), + const SizedBox(width: 5), + Text( + widget.gameSession.players[playerIndex], + style: const TextStyle( + fontWeight: FontWeight.bold), + ), + ], + ), + trailing: Row( + children: [ + const SizedBox(width: 5), + Text( + '${widget.gameSession.playerScores[playerIndex]} ' + 'Punkte') + ], + ), + ); + }, + ), + Padding( + padding: const EdgeInsets.fromLTRB(10, 10, 0, 0), + child: Text( + 'Runden', + style: CustomTheme.rowTitle, + ), + ), + ListView.builder( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + itemCount: widget.gameSession.roundNumber, + itemBuilder: (BuildContext context, int index) { + return Padding( + padding: const EdgeInsets.all(1), + child: CupertinoListTile( + title: Text( + 'Runde ${index + 1}', + ), + trailing: index + 1 != + widget.gameSession.roundNumber || + widget.gameSession.isGameFinished == + true + ? (const Text('\u{2705}', + style: TextStyle(fontSize: 22))) + : const Text('\u{23F3}', + style: TextStyle(fontSize: 22)), + onTap: () async { + // ignore: unused_local_variable + final val = await Navigator.of(context, + rootNavigator: true) + .push( + CupertinoPageRoute( + fullscreenDialog: true, + builder: (context) => RoundView( + gameSession: widget.gameSession, + roundNumber: index + 1), + ), + ); + }, + )); + }, + ), + ], + ), + ), + )); }); } diff --git a/pubspec.yaml b/pubspec.yaml index eb3b749..4b57278 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.2.7+198 +version: 0.2.8+201 environment: sdk: ^3.5.4