opt: video subtitle

avoid refetching subtitle
fix stuck when parsing large subtitle body

opt: viewpoints

Update README.md

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-02 12:54:23 +08:00
parent a0b1e23727
commit cbdd8e77db
15 changed files with 348 additions and 121 deletions

View File

@@ -5,8 +5,19 @@ class Segment {
final double end;
final Color color;
final String? title;
final String? url;
final int? from;
final int? to;
Segment(this.start, this.end, this.color, [this.title]);
Segment(
this.start,
this.end,
this.color, [
this.title,
this.url,
this.from,
this.to,
]);
}
class SegmentProgressBar extends CustomPainter {
@@ -76,7 +87,7 @@ class SegmentProgressBar extends CustomPainter {
size.width,
0,
),
Paint()..color = Colors.grey[600]!,
Paint()..color = Colors.grey[600]!.withOpacity(0.45),
);
}