feat: 字幕大小固定

This commit is contained in:
orz12
2024-03-13 18:35:12 +08:00
parent 6c42a43bd5
commit 766b85cff1

View File

@@ -206,7 +206,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
final Color colorTheme = Theme.of(context).colorScheme.primary;
const TextStyle subTitleStyle = TextStyle(
height: 1.5,
fontSize: 65.0,
fontSize: 20.0,
letterSpacing: 0.1,
wordSpacing: 0.1,
color: Color(0xffffffff),
@@ -231,6 +231,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
subtitleViewConfiguration: const SubtitleViewConfiguration(
style: subTitleStyle,
padding: EdgeInsets.all(24.0),
textScaleFactor: 1.0,
),
fit: _.videoFit.value,
),