mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: add always_put_control_body_on_new_line lint (#28352)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -49,7 +49,9 @@ class _VideoControlsState extends ConsumerState<VideoControls> {
|
||||
}
|
||||
|
||||
void _onHideTimer() {
|
||||
if (!mounted) return;
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
if (ref.read(_provider).status == VideoPlaybackStatus.playing) {
|
||||
ref.read(assetViewerProvider.notifier).setControls(false);
|
||||
}
|
||||
@@ -91,7 +93,9 @@ class _VideoControlsState extends ConsumerState<VideoControls> {
|
||||
final isFinished = !isCasting && videoStatus == VideoPlaybackStatus.completed;
|
||||
|
||||
ref.listen(assetViewerProvider.select((v) => v.showingControls), (prev, showing) {
|
||||
if (showing && prev != showing) _hideTimer.reset();
|
||||
if (showing && prev != showing) {
|
||||
_hideTimer.reset();
|
||||
}
|
||||
});
|
||||
ref.listen(_provider.select((v) => v.status), (_, __) => _hideTimer.reset());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user