Removed horizontal scrollbar and adjusted text width
This commit is contained in:
@@ -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> {
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
));
|
||||
})));
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user