add some more padding to member list

This commit is contained in:
Henry Hiles 2026-06-06 10:55:12 -04:00
commit c5122fc34f
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -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(