Repository navigation
1.8.14
What's changed
- Added
ShopLivePlayer.setResizeMode(). It passes the nativesetResizeModeAPI 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.14Note
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