From e40de37b9d94399f4136ab592e831ee8efcc4e88 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Wed, 10 Jun 2026 10:41:25 -0400 Subject: [PATCH] move message button above kick/ban --- lib/widgets/user_bottom_sheet.dart | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/widgets/user_bottom_sheet.dart b/lib/widgets/user_bottom_sheet.dart index d83fbb1..d422e01 100644 --- a/lib/widgets/user_bottom_sheet.dart +++ b/lib/widgets/user_bottom_sheet.dart @@ -193,6 +193,20 @@ class UserBottomSheet extends ConsumerWidget { SizedBox(height: 8), if (userId != ref.watch(ClientStateController.provider)?.userId && roomId != null) ...[ + Row( + children: [ + Expanded( + child: M3EButton.icon( + onPressed: null, + shape: .square, + style: .tonal, + icon: Icon(Icons.message), + label: Text("Message"), + ), + ), + ], + ), + if (ref.watch( PowerLevelController.provider( .membershipAction( @@ -205,7 +219,7 @@ class UserBottomSheet extends ConsumerWidget { member.status == .join || member.status == .invite) Padding( - padding: .only(bottom: 8), + padding: .only(top: 4), child: Row( mainAxisSize: MainAxisSize.max, spacing: 8, @@ -242,20 +256,6 @@ class UserBottomSheet extends ConsumerWidget { ].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"), - ), - ), - ], - ), ], ], ),