Merge pull request #51 from flixcoo/bug/42-bug-when-scrolling-in-round-overview

Updated scrolling to one ScrollView and removed scrolling on listViews
This commit is contained in:
2025-06-12 11:16:50 +02:00
committed by GitHub
3 changed files with 93 additions and 89 deletions

View File

@@ -52,9 +52,9 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
launchStyle = "0"
useCustomWorkingDirectory = "NO"

View File

@@ -24,6 +24,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
middle: Text(widget.gameSession.gameTitle),
),
child: SafeArea(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -36,6 +37,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
),
ListView.builder(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
itemCount: widget.gameSession.players.length,
itemBuilder: (BuildContext context, int index) {
int playerIndex = sortedPlayerIndices[index];
@@ -46,8 +48,8 @@ class _ActiveGameViewState extends State<ActiveGameView> {
const SizedBox(width: 5),
Text(
widget.gameSession.players[playerIndex],
style:
const TextStyle(fontWeight: FontWeight.bold),
style: const TextStyle(
fontWeight: FontWeight.bold),
),
],
),
@@ -71,6 +73,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
),
ListView.builder(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
itemCount: widget.gameSession.roundNumber,
itemBuilder: (BuildContext context, int index) {
return Padding(
@@ -81,7 +84,8 @@ class _ActiveGameViewState extends State<ActiveGameView> {
),
trailing: index + 1 !=
widget.gameSession.roundNumber ||
widget.gameSession.isGameFinished == true
widget.gameSession.isGameFinished ==
true
? (const Text('\u{2705}',
style: TextStyle(fontSize: 22)))
: const Text('\u{23F3}',
@@ -105,7 +109,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
],
),
),
);
));
});
}

View File

@@ -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