Overview
Outlets are widgets that render presentations. They watch a surface and rebuild when the active item changes.Basic outlet
Production example
See popup host implementation
Real-world dialog management with queuing
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create widgets that render presentations
class MyOutlet extends StatelessWidget {
@override
Widget build(BuildContext context) {
return PresentumOutlet<CampaignItem, AppSurface, CampaignVariant>(
surface: AppSurface.homeTopBanner,
builder: (context, item) {
return BannerWidget(
title: item.metadata['title'] as String,
onClose: () => context
.presentum<CampaignItem, AppSurface, CampaignVariant>()
.markDismissed(item),
);
},
);
}
}
Was this page helpful?