mod: danmaku

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-27 10:39:53 +08:00
parent 91fc383723
commit 8e8dc273aa
11 changed files with 22 additions and 29 deletions

View File

@@ -1,5 +1,3 @@
// ignore_for_file: library_private_types_in_public_api
import 'package:flutter/material.dart';
class ExpandedSection extends StatefulWidget {
@@ -17,7 +15,7 @@ class ExpandedSection extends StatefulWidget {
});
@override
_ExpandedSectionState createState() => _ExpandedSectionState();
State<ExpandedSection> createState() => _ExpandedSectionState();
}
class _ExpandedSectionState extends State<ExpandedSection>

View File

@@ -1491,8 +1491,7 @@ class _HeaderControlState extends State<HeaderControl> {
value: danmakuLineHeight,
label: '$danmakuLineHeight',
onChanged: (double val) {
danmakuLineHeight =
double.parse(val.toStringAsFixed(1));
danmakuLineHeight = val.toPrecision(1);
widget.controller!.danmakuLineHeight =
danmakuLineHeight;
widget.controller?.putDanmakuSettings();