mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-17 06:40:13 +08:00
@@ -936,10 +936,11 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
|
|
||||||
final sliderTheme = SliderThemeData(
|
final sliderTheme = SliderThemeData(
|
||||||
|
trackHeight: 10,
|
||||||
trackShape: MSliderTrackShape(),
|
trackShape: MSliderTrackShape(),
|
||||||
thumbColor: theme.colorScheme.primary,
|
thumbColor: theme.colorScheme.primary,
|
||||||
activeTrackColor: theme.colorScheme.primary,
|
activeTrackColor: theme.colorScheme.primary,
|
||||||
trackHeight: 10,
|
inactiveTrackColor: theme.colorScheme.onInverseSurface,
|
||||||
thumbShape: const RoundSliderThumbShape(enabledThumbRadius: 6.0),
|
thumbShape: const RoundSliderThumbShape(enabledThumbRadius: 6.0),
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -1274,10 +1275,11 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
|
|
||||||
final sliderTheme = SliderThemeData(
|
final sliderTheme = SliderThemeData(
|
||||||
|
trackHeight: 10,
|
||||||
trackShape: MSliderTrackShape(),
|
trackShape: MSliderTrackShape(),
|
||||||
thumbColor: theme.colorScheme.primary,
|
thumbColor: theme.colorScheme.primary,
|
||||||
activeTrackColor: theme.colorScheme.primary,
|
activeTrackColor: theme.colorScheme.primary,
|
||||||
trackHeight: 10,
|
inactiveTrackColor: theme.colorScheme.onInverseSurface,
|
||||||
thumbShape: const RoundSliderThumbShape(enabledThumbRadius: 6.0),
|
thumbShape: const RoundSliderThumbShape(enabledThumbRadius: 6.0),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1607,6 +1607,7 @@ class PlPlayerController {
|
|||||||
videoShot = {'status': false};
|
videoShot = {'status': false};
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
videoShot = {'status': false};
|
||||||
debugPrint('getVideoShot: $e');
|
debugPrint('getVideoShot: $e');
|
||||||
}
|
}
|
||||||
_isQueryingVideoShot = false;
|
_isQueryingVideoShot = false;
|
||||||
|
|||||||
@@ -1796,7 +1796,9 @@ Widget buildSeekPreviewWidget(PlPlayerController plPlayerController) {
|
|||||||
return Obx(() {
|
return Obx(() {
|
||||||
if (!plPlayerController.showPreview.value ||
|
if (!plPlayerController.showPreview.value ||
|
||||||
plPlayerController.videoShot?['status'] != true) {
|
plPlayerController.videoShot?['status'] != true) {
|
||||||
plPlayerController.getVideoShot();
|
if (plPlayerController.videoShot == null) {
|
||||||
|
plPlayerController.getVideoShot();
|
||||||
|
}
|
||||||
return SizedBox.shrink(
|
return SizedBox.shrink(
|
||||||
key: ValueKey(plPlayerController.previewDx.value),
|
key: ValueKey(plPlayerController.previewDx.value),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user