|
|
|
@ -33,8 +33,8 @@ class UserBottomSheetView extends StatelessWidget {
|
|
|
|
|
child: OutlinedButton.icon(
|
|
|
|
|
onPressed: () => controller
|
|
|
|
|
.participantAction(UserBottomSheetAction.message),
|
|
|
|
|
icon: const Icon(Icons.chat_outlined),
|
|
|
|
|
label: Text(L10n.of(context)!.newChat),
|
|
|
|
|
icon: const Icon(Icons.forum_outlined),
|
|
|
|
|
label: Text(L10n.of(context)!.sendAMessage),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
@ -72,7 +72,7 @@ class UserBottomSheetView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
if (controller.widget.onMention != null)
|
|
|
|
|
ListTile(
|
|
|
|
|
trailing: const Icon(Icons.alternate_email_outlined),
|
|
|
|
|
leading: const Icon(Icons.alternate_email_outlined),
|
|
|
|
|
title: Text(L10n.of(context)!.mention),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
controller.participantAction(UserBottomSheetAction.mention),
|
|
|
|
@ -80,14 +80,14 @@ class UserBottomSheetView extends StatelessWidget {
|
|
|
|
|
if (user.canChangePowerLevel)
|
|
|
|
|
ListTile(
|
|
|
|
|
title: Text(L10n.of(context)!.setPermissionsLevel),
|
|
|
|
|
trailing: const Icon(Icons.edit_attributes_outlined),
|
|
|
|
|
leading: const Icon(Icons.edit_attributes_outlined),
|
|
|
|
|
onTap: () => controller
|
|
|
|
|
.participantAction(UserBottomSheetAction.permission),
|
|
|
|
|
),
|
|
|
|
|
if (user.canKick)
|
|
|
|
|
ListTile(
|
|
|
|
|
title: Text(L10n.of(context)!.kickFromChat),
|
|
|
|
|
trailing: const Icon(Icons.exit_to_app_outlined),
|
|
|
|
|
leading: const Icon(Icons.exit_to_app_outlined),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
controller.participantAction(UserBottomSheetAction.kick),
|
|
|
|
|
),
|
|
|
|
@ -101,7 +101,7 @@ class UserBottomSheetView extends StatelessWidget {
|
|
|
|
|
else if (user.canBan && user.membership == Membership.ban)
|
|
|
|
|
ListTile(
|
|
|
|
|
title: Text(L10n.of(context)!.unbanFromChat),
|
|
|
|
|
trailing: const Icon(Icons.warning_outlined),
|
|
|
|
|
leading: const Icon(Icons.warning_outlined),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
controller.participantAction(UserBottomSheetAction.unban),
|
|
|
|
|
),
|
|
|
|
@ -111,7 +111,7 @@ class UserBottomSheetView extends StatelessWidget {
|
|
|
|
|
textColor: Theme.of(context).colorScheme.onErrorContainer,
|
|
|
|
|
iconColor: Theme.of(context).colorScheme.onErrorContainer,
|
|
|
|
|
title: Text(L10n.of(context)!.ignore),
|
|
|
|
|
trailing: const Icon(Icons.block),
|
|
|
|
|
leading: const Icon(Icons.block),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
controller.participantAction(UserBottomSheetAction.ignore),
|
|
|
|
|
),
|
|
|
|
@ -120,7 +120,7 @@ class UserBottomSheetView extends StatelessWidget {
|
|
|
|
|
textColor: Theme.of(context).colorScheme.error,
|
|
|
|
|
iconColor: Theme.of(context).colorScheme.error,
|
|
|
|
|
title: Text(L10n.of(context)!.reportUser),
|
|
|
|
|
trailing: const Icon(Icons.shield_outlined),
|
|
|
|
|
leading: const Icon(Icons.shield_outlined),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
controller.participantAction(UserBottomSheetAction.report),
|
|
|
|
|
),
|
|
|
|
|