For the complete documentation index, see llms.txt. This page is also available as Markdown.

Player deck configurations (Flutter)

PlayerDeck widget provides playerDeckConfiguration property for configuring Player Deck. The current configurable properties include backgroundColor, cornerRadius, itemSpacing, contentPadding, autoplay, item controls, ad badge, fullscreen behavior, and subtitles. Please refer to PlayerDeckConfiguration for more details.

Customize player deck appearance and layout

final playerDeckConfiguration = PlayerDeckConfiguration(
  // Configure background color
  backgroundColor: "#FFFFFF",
  // Configure the corner radius for each deck item
  cornerRadius: 8,
  // Configure the spacing between each deck item
  itemSpacing: 16,
  // Configure content padding
  contentPadding: PlayerDeckPadding(
    top: 10,
    right: 10,
    bottom: 10,
    left: 10,
  ),
);

PlayerDeck(
  height: 481,
  source: VideoFeedSource.discover,
  playerDeckConfiguration: playerDeckConfiguration,
);

Customize player deck item controls

Customize player deck subtitles

Update player deck configuration

You can update playerDeckConfiguration by rebuilding the PlayerDeck widget with a new PlayerDeckConfiguration value.

Last updated

Was this helpful?