showParticipantQuickActions function
void
showParticipantQuickActions(
- BuildContext context,
- Participant<
TrackPublication< participant,Track> > - RtcViewmodel viewModel
Shows a quick-action bottom sheet anchored to participant.
The participant reference is captured at call time, so even if the tile
layout shuffles while the sheet is open, all actions operate on the
exact participant the host pressed.
Implementation
void showParticipantQuickActions(
BuildContext context,
Participant participant,
RtcViewmodel viewModel,
) {
showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
isScrollControlled: true,
builder: (_) => ParticipantQuickActionsSheet(
participant: participant,
viewModel: viewModel,
// Capture navigator now so navigation still works after the sheet
// is dismissed (sheet context may already be unmounted by then).
onNavigateTo: (route) => Navigator.of(context).push(route),
),
);
}