Removed horizontal scrollbar and adjusted text width
This commit is contained in:
@@ -27,8 +27,6 @@ class _PointsViewState extends State<PointsView> {
|
|||||||
|
|
||||||
return SingleChildScrollView(
|
return SingleChildScrollView(
|
||||||
scrollDirection: Axis.vertical,
|
scrollDirection: Axis.vertical,
|
||||||
child: SingleChildScrollView(
|
|
||||||
scrollDirection: Axis.horizontal,
|
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints: BoxConstraints(minWidth: constraints.maxWidth),
|
constraints: BoxConstraints(minWidth: constraints.maxWidth),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
@@ -36,7 +34,7 @@ class _PointsViewState extends State<PointsView> {
|
|||||||
child: DataTable(
|
child: DataTable(
|
||||||
dataRowMaxHeight: 60,
|
dataRowMaxHeight: 60,
|
||||||
dataRowMinHeight: 60,
|
dataRowMinHeight: 60,
|
||||||
columnSpacing: 20,
|
columnSpacing: 0,
|
||||||
columns: [
|
columns: [
|
||||||
const DataColumn(
|
const DataColumn(
|
||||||
label: SizedBox(
|
label: SizedBox(
|
||||||
@@ -53,6 +51,9 @@ class _PointsViewState extends State<PointsView> {
|
|||||||
(player) => DataColumn(
|
(player) => DataColumn(
|
||||||
label: SizedBox(
|
label: SizedBox(
|
||||||
width: columnWidth,
|
width: columnWidth,
|
||||||
|
child: Padding(
|
||||||
|
padding:
|
||||||
|
const EdgeInsets.symmetric(horizontal: 4),
|
||||||
child: Text(
|
child: Text(
|
||||||
player,
|
player,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
@@ -65,6 +66,7 @@ class _PointsViewState extends State<PointsView> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
rows: [
|
rows: [
|
||||||
...List<DataRow>.generate(
|
...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"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.5.4+616
|
version: 0.5.4+622
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user