Use different haptics depending on Platform that comes when using the scrollbar

This commit is contained in:
ashilkn
2025-07-24 20:12:17 +05:30
parent ee864ee0a5
commit 463602c425

View File

@@ -1,4 +1,5 @@
import 'dart:async';
import "dart:io";
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
@@ -828,7 +829,11 @@ class _PinnedGroupHeaderState extends State<PinnedGroupHeader> {
setState(() {});
if (widget.scrollbarInUseNotifier.value) {
HapticFeedback.vibrate();
if (Platform.isIOS) {
HapticFeedback.selectionClick();
} else {
HapticFeedback.vibrate();
}
}
}