Story players
Open stories from a widget or an app action and handle the player lifecycle.
Open a story from a widget
Tapping a Bubble or Card opens the player on the selected story. Add the widget from the Flutter quickstart and check that closing playback returns the viewer to the same screen.
Open the standalone player
After initialization, call the player from a button or another app action. The alias identifies the published widget whose stories the player should open.
ElevatedButton(
onPressed: () async {
await JOINStories.startPlayer('welcome-showcase');
},
child: const Text('Open stories'),
)
Observe the player lifecycle
Pass onPlayerLoaded, onPlayerFetchError and onPlayerDismissed to the widget or to startPlayer if your screen needs to respond to playback. Use JOINStories.dismissPlayer() when an app-owned action should close playback. The published Dart API exposes a standalone player and Bubble/Card widgets. It does not expose an embedded vertical-feed view.
See Deep links and story actions for routing and Shopping for cart actions.
Updated about 2 hours ago
