0 purchases
flutter novel
flutter_novel #
穿山甲小说 Flutter SDK
一、引入 #
dependencies:
flutter_novel: lastVersion
copied to clipboard
二、拷贝配置文件 #
在内容输出->内容管理模块找到需要接入小说SDK的应用,点击"下载SDK参数配置",然后将JSON配置文件拷贝到项目的assets文件夹下。具体请参考官方文档
三、使用 #
初始化SDK
await FlutterNovel.init(appName: "", appVersionCode: 2, appVersionName: "", channel: "");
copied to clipboard
打开独立的小说Activity
FlutterNovel.start();
copied to clipboard
导流入口(目前只实现了Banner)
// size: 图片比例。1为16:3 | 2为16:5 | 3为16:9
// 无需设置点击事件,点击后默认会打开小说Acticuty
NovelBanner(size: "1")
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.