|
|
|
|
@ -102,6 +102,13 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
backgroundColor: Theme.of(context).appBarTheme.backgroundColor,
|
|
|
|
|
),
|
|
|
|
|
body: MaxWidthBody(
|
|
|
|
|
// #Pangea
|
|
|
|
|
// Chat description title has its own scrollbar so we disable the parent one
|
|
|
|
|
// otherwise they scroll with each other
|
|
|
|
|
child: ScrollConfiguration(
|
|
|
|
|
behavior:
|
|
|
|
|
ScrollConfiguration.of(context).copyWith(scrollbars: false),
|
|
|
|
|
// Pangea#
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
@ -133,8 +140,8 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Hero(
|
|
|
|
|
tag: controller
|
|
|
|
|
.widget.embeddedCloseButton !=
|
|
|
|
|
tag: controller.widget
|
|
|
|
|
.embeddedCloseButton !=
|
|
|
|
|
null
|
|
|
|
|
? 'embedded_content_banner'
|
|
|
|
|
: 'content_banner',
|
|
|
|
|
@ -174,7 +181,8 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
: room.canChangeStateEvent(
|
|
|
|
|
EventTypes.RoomName,
|
|
|
|
|
)
|
|
|
|
|
? controller.setDisplaynameAction()
|
|
|
|
|
? controller
|
|
|
|
|
.setDisplaynameAction()
|
|
|
|
|
: FluffyShare.share(
|
|
|
|
|
displayname,
|
|
|
|
|
context,
|
|
|
|
|
@ -260,7 +268,8 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
title: Text(
|
|
|
|
|
L10n.of(context)!.spaceAnalytics,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Theme.of(context).colorScheme.secondary,
|
|
|
|
|
color:
|
|
|
|
|
Theme.of(context).colorScheme.secondary,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -390,7 +399,8 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
title: Text(
|
|
|
|
|
L10n.of(context)!.editChatPermissions,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Theme.of(context).colorScheme.secondary,
|
|
|
|
|
color:
|
|
|
|
|
Theme.of(context).colorScheme.secondary,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -409,8 +419,9 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
// #Pangea
|
|
|
|
|
// trailing: const Icon(Icons.chevron_right_outlined),
|
|
|
|
|
// Pangea#
|
|
|
|
|
onTap: () => context
|
|
|
|
|
.push('/rooms/${room.id}/details/permissions'),
|
|
|
|
|
onTap: () => context.push(
|
|
|
|
|
'/rooms/${room.id}/details/permissions',
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
height: 1,
|
|
|
|
|
@ -426,20 +437,24 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
? L10n.of(context)!.inviteUsersFromPangea
|
|
|
|
|
: L10n.of(context)!.inviteStudentByUserName,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Theme.of(context).colorScheme.secondary,
|
|
|
|
|
color:
|
|
|
|
|
Theme.of(context).colorScheme.secondary,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
leading: CircleAvatar(
|
|
|
|
|
backgroundColor:
|
|
|
|
|
Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
|
foregroundColor:
|
|
|
|
|
Theme.of(context).textTheme.bodyLarge!.color,
|
|
|
|
|
foregroundColor: Theme.of(context)
|
|
|
|
|
.textTheme
|
|
|
|
|
.bodyLarge!
|
|
|
|
|
.color,
|
|
|
|
|
child: const Icon(
|
|
|
|
|
Icons.add,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
onTap: () => context.go('/rooms/${room.id}/invite'),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
context.go('/rooms/${room.id}/invite'),
|
|
|
|
|
),
|
|
|
|
|
if (room.showClassEditOptions && room.isSpace)
|
|
|
|
|
SpaceDetailsToggleAddStudentsTile(
|
|
|
|
|
@ -593,7 +608,8 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
? L10n.of(context)!.lockSpace
|
|
|
|
|
: L10n.of(context)!.lockChat,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Theme.of(context).colorScheme.secondary,
|
|
|
|
|
color:
|
|
|
|
|
Theme.of(context).colorScheme.secondary,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -659,7 +675,8 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
: ListTile(
|
|
|
|
|
title: Text(
|
|
|
|
|
L10n.of(context)!.loadCountMoreParticipants(
|
|
|
|
|
(actualMembersCount - members.length).toString(),
|
|
|
|
|
(actualMembersCount - members.length)
|
|
|
|
|
.toString(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
leading: CircleAvatar(
|
|
|
|
|
@ -677,6 +694,7 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
|