alpha_player

A new Flutter project.

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

///
/// 礼物特效播放器
///
GlobalKey<AlphaPlayerViewState> playerKey = GlobalKey<AlphaPlayerViewState>();


AlphaPlayerView(
key: playerKey,
giftPlayEndCallback: () {
// 播放结束
},
)

/// 播放视频动画
playerKey.currentState ?.playerGiftPath("/xxx/xxx/xxx.mp4");