move message button above kick/ban
This commit is contained in:
parent
7757825e27
commit
e40de37b9d
1 changed files with 15 additions and 15 deletions
|
|
@ -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"),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue