mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	* Remove toggle fullscreen button * Implement custom video player controls * Move Padding into Container
		
			
				
	
	
		
			22 lines
		
	
	
		
			394 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			394 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:hooks_riverpod/hooks_riverpod.dart';
 | 
						|
 | 
						|
final showControlsProvider = StateNotifierProvider<ShowControls, bool>((ref) {
 | 
						|
  return ShowControls(ref);
 | 
						|
});
 | 
						|
 | 
						|
class ShowControls extends StateNotifier<bool> {
 | 
						|
  ShowControls(this.ref) : super(true);
 | 
						|
 | 
						|
  final Ref ref;
 | 
						|
 | 
						|
  bool get show => state;
 | 
						|
 | 
						|
  set show(bool value) {
 | 
						|
    state = value;
 | 
						|
  }
 | 
						|
 | 
						|
  void toggle() {
 | 
						|
    state = !state;
 | 
						|
  }
 | 
						|
}
 |