2 Commits

Author SHA1 Message Date
86ec4de5c0 add textoverflow behaviour
Some checks failed
Pull Request Pipeline / test (pull_request) Successful in 2m5s
Pull Request Pipeline / lint (pull_request) Failing after 2m8s
2025-11-25 22:03:38 +01:00
479e9a2575 add spacing between title and list and rename appbar title to game name 2025-11-25 22:01:49 +01:00
2 changed files with 21 additions and 19 deletions

View File

@@ -17,7 +17,7 @@ class GameResultView extends StatefulWidget {
class _GameResultViewState extends State<GameResultView> {
late final List<Player> allPlayers;
Player? _player;
Player? _player; //TODO: Set last winner as selected
@override
void initState() {
@@ -32,9 +32,13 @@ class _GameResultViewState extends State<GameResultView> {
appBar: AppBar(
backgroundColor: CustomTheme.backgroundColor,
scrolledUnderElevation: 0,
title: const Text(
'Game Result',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
title: Text(
widget.game.name,
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
overflow: TextOverflow.ellipsis,
),
),
centerTitle: true,
),
@@ -67,6 +71,7 @@ class _GameResultViewState extends State<GameResultView> {
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 2),
Visibility(
visible: allPlayers.isNotEmpty,
replacement: const TopCenteredMessage(

View File

@@ -25,23 +25,20 @@ class CustomRadioListTile<T> extends StatelessWidget {
border: Border.all(color: CustomTheme.boxBorder),
borderRadius: BorderRadius.circular(12),
),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 5),
child: Row(
children: [
Radio<T>(value: value, activeColor: CustomTheme.primaryColor),
Expanded(
child: Text(
text,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
child: Row(
children: [
Radio<T>(value: value, activeColor: CustomTheme.primaryColor),
Expanded(
child: Text(
text,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
],
),
),
],
),
),
);