MVP #141

Merged
flixcoo merged 705 commits from development into main 2026-01-09 12:55:50 +00:00
2 changed files with 16 additions and 18 deletions
Showing only changes of commit 479e9a2575 - Show all commits

View File

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

View File

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