Files
Immich/mobile/lib/providers/asset_viewer/is_motion_video_playing.provider.dart
T
Adam GastineauandGitHub 2ccd0effc8 chore(mobile): enable dead code CI (#31753)
* chore(mobile): enable dead code CI

* Restore accidentally removed test and set mise default
2026-09-24 06:57:06 -07:00

21 lines
468 B
Dart

import 'package:hooks_riverpod/hooks_riverpod.dart';
/// Whether to display the video part of a motion photo
final isPlayingMotionVideoProvider = StateNotifierProvider<IsPlayingMotionVideo, bool>((ref) {
return IsPlayingMotionVideo();
});
class IsPlayingMotionVideo extends StateNotifier<bool> {
IsPlayingMotionVideo() : super(false);
bool get playing => state;
set playing(bool value) {
state = value;
}
void toggle() {
state = !state;
}
}