fix: 视频总结

This commit is contained in:
guozhigq
2024-09-30 11:23:40 +08:00
parent a2e219f56f
commit 3d5f5597cd
3 changed files with 17 additions and 14 deletions

View File

@ -541,7 +541,7 @@ class VideoIntroController extends GetxController {
// ai总结
Future aiConclusion() async {
SmartDialog.showLoading(msg: '正在生ai总结');
SmartDialog.showLoading(msg: '正在生ai总结');
final res = await VideoHttp.aiConclusion(
bvid: bvid,
cid: lastPlayCid.value,
@ -551,7 +551,7 @@ class VideoIntroController extends GetxController {
if (res['status']) {
modelResult = res['data'].modelResult;
} else {
SmartDialog.showToast("当前视频可能暂不支持AI视频总结");
SmartDialog.showToast("当前视频暂不支持AI视频总结");
}
return res;
}

View File

@ -49,15 +49,18 @@ class AiDetail extends StatelessWidget {
child: SingleChildScrollView(
child: Column(
children: [
SelectableText(
modelResult!.summary!,
style: const TextStyle(
fontSize: 15,
fontWeight: FontWeight.bold,
height: 1.5,
if (modelResult!.resultType != 0 &&
modelResult!.summary != '') ...[
SelectableText(
modelResult!.summary!,
style: const TextStyle(
fontSize: 15,
fontWeight: FontWeight.bold,
height: 1.5,
),
),
),
const SizedBox(height: 20),
const SizedBox(height: 20),
],
ListView.builder(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),