add some more padding to member list
This commit is contained in:
parent
457de3c77c
commit
c5122fc34f
1 changed files with 21 additions and 18 deletions
|
|
@ -48,25 +48,28 @@ class MemberList extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
M3EToggleButtonGroup(
|
Padding(
|
||||||
type: .connected,
|
padding: .symmetric(vertical: 8),
|
||||||
selectedIndex: statusIndex.value,
|
child: M3EToggleButtonGroup(
|
||||||
onSelectedIndexChanged: (index) =>
|
type: .connected,
|
||||||
statusIndex.value = index ?? statusIndex.value,
|
selectedIndex: statusIndex.value,
|
||||||
// overflow: M3EButtonGroupOverflow.menu,
|
onSelectedIndexChanged: (index) =>
|
||||||
actions: options
|
statusIndex.value = index ?? statusIndex.value,
|
||||||
.mapTo(
|
// overflow: M3EButtonGroupOverflow.menu,
|
||||||
(name, value) => M3EToggleButtonGroupAction(
|
actions: options
|
||||||
checkedLabel: Text(
|
.mapTo(
|
||||||
"$name${switch (ref.watch(MembersByStatusController.provider(.new(roomId: roomId, status: value)))) {
|
(name, value) => M3EToggleButtonGroupAction(
|
||||||
AsyncData(:final value) || AsyncLoading(:final value?) => " (${value.length})",
|
checkedLabel: Text(
|
||||||
_ => "",
|
"$name${switch (ref.watch(MembersByStatusController.provider(.new(roomId: roomId, status: value)))) {
|
||||||
}}",
|
AsyncData(:final value) || AsyncLoading(:final value?) => " (${value.length})",
|
||||||
|
_ => "",
|
||||||
|
}}",
|
||||||
|
),
|
||||||
|
label: Text(name),
|
||||||
),
|
),
|
||||||
label: Text(name),
|
)
|
||||||
),
|
.toList(),
|
||||||
)
|
),
|
||||||
.toList(),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
switch (ref.watch(
|
switch (ref.watch(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue