mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			381 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			381 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:flutter/material.dart';
 | |
| 
 | |
| final scrollToDateNotifierProvider = ScrollToDateNotifier(null);
 | |
| 
 | |
| class ScrollToDateNotifier extends ValueNotifier<DateTime?> {
 | |
|   ScrollToDateNotifier(super.value);
 | |
| 
 | |
|   void scrollToDate(DateTime date) {
 | |
|     value = date;
 | |
| 
 | |
|     // Manually notify listeners to trigger the scroll, even if the value hasn't changed
 | |
|     notifyListeners();
 | |
|   }
 | |
| }
 |