mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Add haptic feedback on swiping asset
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
import 'package:auto_route/auto_route.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:flutter/services.dart';
 | 
			
		||||
import 'package:flutter_hooks/flutter_hooks.dart';
 | 
			
		||||
import 'package:flutter_swipe_detector/flutter_swipe_detector.dart';
 | 
			
		||||
import 'package:hive/hive.dart';
 | 
			
		||||
@@ -111,6 +112,9 @@ class GalleryViewerPage extends HookConsumerWidget {
 | 
			
		||||
              : const BouncingScrollPhysics(),
 | 
			
		||||
          itemCount: assetList.length,
 | 
			
		||||
          scrollDirection: Axis.horizontal,
 | 
			
		||||
          onPageChanged: (value) {
 | 
			
		||||
            HapticFeedback.selectionClick();
 | 
			
		||||
          },
 | 
			
		||||
          itemBuilder: (context, index) {
 | 
			
		||||
            initState(index);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user