Skip to content

1.8.14

Choose a tag to compare

@Tabber-shoplive Tabber-shoplive released this 14 Aug 08:41
· 23 commits to main since this release
c41f425

What's changed

  • Added ShopLivePlayer.setResizeMode(). It passes the native setResizeMode API through for the live player (ShopLiveResizeMode.auto / centerCrop / fit).
  • Updated Shoplive iOS/Android SDK from 1.8.11 to 1.8.13.

Example

final player = ShopLivePlayer();

player.setResizeMode(mode: ShopLiveResizeMode.centerCrop);
player.play(data: ShopLivePlayerData(campaignKey: '<campaign key>'));

Installation

dependencies:
  shoplive_player: ^1.8.14

Note

The native ShopLiveResizeMode enums declare their values in a different order on iOS and Android. For this reason, the plugin sends the value as a name string, not as an integer. You only use the Dart enum. No other step is necessary.


Full Changelog: 1.8.13...1.8.14
pub.dev: https://pub.dev/packages/shoplive_player/versions/1.8.14