opt: 字幕渲染逻辑

This commit is contained in:
guozhigq
2024-06-29 17:12:06 +08:00
parent 3c7189a260
commit 922b815ebd
6 changed files with 11 additions and 140 deletions

View File

@ -1,6 +1,3 @@
import 'package:get/get.dart';
import '../../common/subtitle_type.dart';
class SubTitlteModel {
SubTitlteModel({
this.aid,
@ -78,11 +75,6 @@ class SubTitlteItemModel {
aiType: json["ai_type"],
aiStatus: json["ai_status"],
title: json["lan_doc"],
code: SubtitleType.values
.firstWhereOrNull(
(element) => element.id.toString() == json["lan"])
?.index ??
-1,
content: '',
body: [],
);