From 231c0442448412bd4b1d9a7e84eafde198de6779 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Mon, 4 Aug 2025 19:36:44 +0200 Subject: [PATCH] Added named constant --- lib/presentation/views/points_view.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/presentation/views/points_view.dart b/lib/presentation/views/points_view.dart index 2927d94..161d72e 100644 --- a/lib/presentation/views/points_view.dart +++ b/lib/presentation/views/points_view.dart @@ -22,6 +22,7 @@ class _PointsViewState extends State { previousPageTitle: AppLocalizations.of(context).back, ), child: SafeArea(child: LayoutBuilder(builder: (context, constraints) { + const double caboFieldWidthFactor = 0.2; const double roundColWidth = 35; const double tablePadding = 8; final int playerCount = widget.gameSession.players.length; @@ -156,7 +157,7 @@ class _PointsViewState extends State { child: Container( width: playerColWidth * (playerCount * - 0.2), // Adjust width based on amount of players + caboFieldWidthFactor), // Adjust width based on amount of players decoration: BoxDecoration( color: saidCabo ? CustomTheme