opt progress bar

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-22 15:14:59 +08:00
parent 66752093e4
commit b9eaa368b1
3 changed files with 19 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ class BottomControl extends StatelessWidget {
if (value > max || max <= 0) {
return const SizedBox.shrink();
}
return ProgressBar(
final child = ProgressBar(
progress: Duration(seconds: value),
buffered: Duration(seconds: buffer),
total: Duration(seconds: max),
@@ -109,6 +109,13 @@ class BottomControl extends StatelessWidget {
);
},
);
if (Utils.isDesktop) {
return MouseRegion(
cursor: SystemMouseCursors.click,
child: child,
);
}
return child;
}),
if (controller.enableSponsorBlock &&
videoDetailController.segmentProgressList.isNotEmpty)