@ -31,19 +31,22 @@ class ActivityUnfinishedStatusMessageState
@ override
Widget build ( BuildContext context ) {
final unassignedRoles = widget . room . remainingRoles ;
debugPrint ( " HELLO. remainingRoles: ${ widget . room . remainingRoles } " ) ;
final theme = Theme . of ( context ) ;
final isColumnMode = FluffyThemes . isColumnMode ( context ) ;
final remainingRoles = widget . room . remainingRoles ;
final completed = widget . room . hasCompletedActivity ;
return Column (
children: [
if ( ! widget . room . hasCompletedActivity ) . . . [
if ( unassigned Roles > 0 )
if ( ! completed ) . . . [
if ( remaining Roles > 0 )
Wrap (
spacing: 12.0 ,
runSpacing: 12.0 ,
children: List . generate ( unassigned Roles, ( index ) {
children: List . generate ( remaining Roles, ( index ) {
return ActivityParticipantIndicator (
selected: _selectedRole = = index ,
onTap: ( ) = > _selectRole ( index ) ,
@ -52,7 +55,7 @@ class ActivityUnfinishedStatusMessageState
) ,
const SizedBox ( height: 16.0 ) ,
Text (
unassigned Roles > 0
remaining Roles > 0
? L10n . of ( context ) . unjoinedActivityMessage
: L10n . of ( context ) . fullActivityMessage ,
textAlign: TextAlign . center ,
@ -62,7 +65,6 @@ class ActivityUnfinishedStatusMessageState
) ,
const SizedBox ( height: 16.0 ) ,
] ,
if ( unassignedRoles > 0 )
ElevatedButton (
style: ElevatedButton . styleFrom (
padding: const EdgeInsets . symmetric (
@ -72,7 +74,7 @@ class ActivityUnfinishedStatusMessageState
foregroundColor: theme . colorScheme . onPrimaryContainer ,
backgroundColor: theme . colorScheme . primaryContainer ,
) ,
onPressed: widget . room . hasCompletedActivity
onPressed: completed
? ( ) {
showFutureLoadingDialog (
context: context ,
@ -91,7 +93,7 @@ class ActivityUnfinishedStatusMessageState
mainAxisAlignment: MainAxisAlignment . center ,
children: [
Text (
widget . room . hasCompletedActivity
completed
? L10n . of ( context ) . continueText
: L10n . of ( context ) . confirmRole ,
style: TextStyle (