renderTrailing method
dynamic
renderTrailing( - dynamic context,
- dynamic ref
)
Implementation
Widget renderTrailing(BuildContext context, WidgetRef ref) {
final mutedStatus = ref.watch(roomIsMutedProvider(roomId));
return Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
_TrailingWidget(roomId: roomId),
if (mutedStatus.valueOrNull == true)
Expanded(
child: MenuAnchor(
builder: (
BuildContext context,
MenuController controller,
Widget? child,
) {
return IconButton(
padding: EdgeInsets.zero,
onPressed: () {
if (controller.isOpen) {
controller.close();
} else {
controller.open();
}
},
icon: const Icon(Atlas.bell_dash_bold, size: 14),
);
},
menuChildren: [
MenuItemButton(
onPressed: () => onUnmute(context, ref),
child: Text(L10n.of(context).unmute),
),
],
),
),
],
);
}