1
0
Fork 0
forked from Nexus/nexus

move message button above kick/ban

This commit is contained in:
Henry Hiles 2026-06-10 10:41:25 -04:00
commit e40de37b9d
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -193,6 +193,20 @@ class UserBottomSheet extends ConsumerWidget {
SizedBox(height: 8), SizedBox(height: 8),
if (userId != ref.watch(ClientStateController.provider)?.userId && if (userId != ref.watch(ClientStateController.provider)?.userId &&
roomId != null) ...[ roomId != null) ...[
Row(
children: [
Expanded(
child: M3EButton.icon(
onPressed: null,
shape: .square,
style: .tonal,
icon: Icon(Icons.message),
label: Text("Message"),
),
),
],
),
if (ref.watch( if (ref.watch(
PowerLevelController.provider( PowerLevelController.provider(
.membershipAction( .membershipAction(
@ -205,7 +219,7 @@ class UserBottomSheet extends ConsumerWidget {
member.status == .join || member.status == .join ||
member.status == .invite) member.status == .invite)
Padding( Padding(
padding: .only(bottom: 8), padding: .only(top: 4),
child: Row( child: Row(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
spacing: 8, spacing: 8,
@ -242,20 +256,6 @@ class UserBottomSheet extends ConsumerWidget {
].map((e) => Expanded(child: e)).toList(), ].map((e) => Expanded(child: e)).toList(),
), ),
), ),
Row(
children: [
Expanded(
child: M3EButton.icon(
onPressed: null,
shape: .square,
style: .tonal,
icon: Icon(Icons.message),
label: Text("Message"),
),
),
],
),
], ],
], ],
), ),