Removed horizontal scrollbar and adjusted text width

This commit is contained in:
2025-08-02 17:08:11 +02:00
parent 287294526a
commit bd8d356235
2 changed files with 115 additions and 114 deletions

View File

@@ -27,8 +27,6 @@ class _PointsViewState extends State<PointsView> {
return SingleChildScrollView(
scrollDirection: Axis.vertical,
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: ConstrainedBox(
constraints: BoxConstraints(minWidth: constraints.maxWidth),
child: Padding(
@@ -36,7 +34,7 @@ class _PointsViewState extends State<PointsView> {
child: DataTable(
dataRowMaxHeight: 60,
dataRowMinHeight: 60,
columnSpacing: 20,
columnSpacing: 0,
columns: [
const DataColumn(
label: SizedBox(
@@ -53,6 +51,9 @@ class _PointsViewState extends State<PointsView> {
(player) => DataColumn(
label: SizedBox(
width: columnWidth,
child: Padding(
padding:
const EdgeInsets.symmetric(horizontal: 4),
child: Text(
player,
style: const TextStyle(
@@ -65,6 +66,7 @@ class _PointsViewState extends State<PointsView> {
),
),
),
),
],
rows: [
...List<DataRow>.generate(
@@ -163,7 +165,6 @@ class _PointsViewState extends State<PointsView> {
],
),
),
),
));
})));
}

View File

@@ -2,7 +2,7 @@ name: cabo_counter
description: "Mobile app for the card game Cabo"
publish_to: 'none'
version: 0.5.4+616
version: 0.5.4+622
environment:
sdk: ^3.5.4