GameHistoryView anpassen #20

Merged
flixcoo merged 27 commits from feature/2-gamehistoryview-anpassen into development 2025-11-30 15:59:25 +00:00
Showing only changes of commit 8c005d6e5e - Show all commits

View File

@@ -103,12 +103,15 @@ class _GameHistoryTileState extends State<GameHistoryTile> {
color: Colors.amber, color: Colors.amber,
), ),
gelbeinhalb marked this conversation as resolved Outdated

Entweder die beiden Group Widgets in ein Visibility bzw Offstage Widget wrappen, oder in ein If-Statement zusammenführen:

if(group != null)
[...SizedBox(), Row()]
Entweder die beiden Group Widgets in ein `Visibility` bzw `Offstage` Widget wrappen, oder in ein If-Statement zusammenführen: ```dart if(group != null) [...SizedBox(), Row()] ```

Von Docs: "Offstage can be used to measure the dimensions of a widget without bringing it on screen (yet). To hide a widget from view while it is not needed, prefer removing the widget from the tree entirely rather than keeping it alive in an Offstage subtree" also eher das if

Von Docs: "Offstage can be used to measure the dimensions of a widget without bringing it on screen (yet). To hide a widget from view while it is not needed, prefer removing the widget from the tree entirely rather than keeping it alive in an Offstage subtree" also eher das if

Ja dann mach das lieber mit If

Ja dann mach das lieber mit If
const SizedBox(width: 8), const SizedBox(width: 8),
Text( Expanded(
'Winner: ${winner.name}', child: Text(
style: const TextStyle( 'Winner: ${winner.name}',
fontSize: 14, style: const TextStyle(
fontWeight: FontWeight.w600, fontSize: 14,
color: Colors.white, fontWeight: FontWeight.w600,
color: Colors.white,
),
overflow: TextOverflow.ellipsis,
), ),
), ),
], ],