⚠️注意 :初始化sdk前,必须先调用用flutter_unionad的初始化方法,不然无法加载广告
await PangrowthVideo.registerVideo(
//接入小说SDK的App的英文名 必填
appName: "appName",
////appid 必填
andoridAppId: "302043",
iosAppId: "299886",
//是否显示日志
debug: true,
);
await PangrowthVideo.openDrawVideoFull();
await PangrowthVideo.openGridVideo();
⚠️只支持ios
PangrowthVideo.drawVideoFullView(
viewWidth: MediaQuery.of(context).size.width,//宽
viewHeight: 700,//高
),
⚠️只支持ios
PangrowthVideo.gridVideoView(
viewWidth: MediaQuery.of(context).size.width,//宽
viewHeight: 700,//高
),
⚠️只支持ios
PangrowthVideo.newsTabsView(
viewWidth: MediaQuery.of(context).size.width,//宽
viewHeight: 700,//高
),
⚠️只支持ios
PangrowthVideo.newsTabOneView(
viewWidth: MediaQuery.of(context).size.width,//宽
viewHeight: 700,//高
),
PangrowthVideo.videoBannerView(
viewWidth: 300,//宽
viewHeight: 200,//高
),
PangrowthVideo.videoTextChainView(
viewWidth: 300,//宽
viewHeight: 200,//高
),
PangrowthVideo.videoBubbleView(
viewWidth: 300,//宽
viewHeight: 200,//高
),
PangrowthVideo.videoSingleCardView(
viewWidth: 300,//宽
viewHeight: 200,//高
),
PangrowthVideo.videoNewsSingleCardView(
viewWidth: 300,//宽
viewHeight: 200,//高
),
PangrowthVideo.videoCardView(
viewWidth: 400,//宽
viewHeight: 200,//高
),
#### 16、打开个人主页
```dart
await PangrowthVideo.openUserCenter();