@ -25,43 +25,48 @@ class ParticipantListItem extends StatelessWidget {
? L10n . of ( context ) . moderator
? L10n . of ( context ) . moderator
: ' ' ;
: ' ' ;
return ListTile (
return Opacity (
onTap: ( ) = > showModalBottomSheet (
opacity: user . membership = = Membership . join ? 1 : 0.5 ,
context: context ,
child: ListTile (
builder: ( c ) = > UserBottomSheet (
onTap: ( ) = > showModalBottomSheet (
user: user ,
context: context ,
outerContext: context ,
builder: ( c ) = > UserBottomSheet (
user: user ,
outerContext: context ,
) ,
) ,
) ,
) ,
title: Row (
title: Row (
children: < Widget > [
children: < Widget > [
Text ( user . calcDisplayname ( ) ) ,
Text ( user . calcDisplayname ( ) ) ,
permissionBatch . isEmpty
permissionBatch . isEmpty
? Container ( )
? Container ( )
: Container (
: Container (
padding: const EdgeInsets . all ( 4 ) ,
padding: const EdgeInsets . all ( 4 ) ,
margin: const EdgeInsets . symmetric ( horizontal: 8 ) ,
margin: const EdgeInsets . symmetric ( horizontal: 8 ) ,
decoration: BoxDecoration (
decoration: BoxDecoration (
color: Theme . of ( context ) . secondaryHeaderColor ,
color: Theme . of ( context ) . secondaryHeaderColor ,
borderRadius: BorderRadius . circular ( 8 ) ,
borderRadius: BorderRadius . circular ( 8 ) ,
) ,
child: Center ( child: Text ( permissionBatch ) ) ,
) ,
) ,
child: Center ( child: Text ( permissionBatch ) ) ,
membershipBatch [ user . membership ] . isEmpty
) ,
? Container ( )
membershipBatch [ user . membership ] . isEmpty
: Container (
? Container ( )
padding: const EdgeInsets . all ( 4 ) ,
: Container (
margin: const EdgeInsets . symmetric ( horizontal: 8 ) ,
padding: const EdgeInsets . all ( 4 ) ,
decoration: BoxDecoration (
margin: const EdgeInsets . symmetric ( horizontal: 8 ) ,
color: Theme . of ( context ) . secondaryHeaderColor ,
decoration: BoxDecoration (
borderRadius: BorderRadius . circular ( 8 ) ,
color: Theme . of ( context ) . secondaryHeaderColor ,
) ,
borderRadius: BorderRadius . circular ( 8 ) ,
child:
Center ( child: Text ( membershipBatch [ user . membership ] ) ) ,
) ,
) ,
child: Center ( child: Text ( membershipBatch [ user . membership ] ) ) ,
] ,
) ,
) ,
] ,
subtitle: Text ( user . id ) ,
leading:
Avatar ( mxContent: user . avatarUrl , name: user . calcDisplayname ( ) ) ,
) ,
) ,
subtitle: Text ( user . id ) ,
leading: Avatar ( mxContent: user . avatarUrl , name: user . calcDisplayname ( ) ) ,
) ;
) ;
}
}
}
}