Remove first scrollbar division since it doesn't add value in terms of UX

This commit is contained in:
ashilkn
2025-07-15 12:11:42 +05:30
parent 1b1e82ebbd
commit 2bee2fe71c

View File

@@ -85,6 +85,9 @@ class _CustomScrollBar2State extends State<CustomScrollBar2> {
}
final filteredResult = <({double position, String title})>[];
// Remove first scrollbar division since it doesn't add value in terms of UX
result.removeAt(0);
// Filter out positions that are too close to each other
if (result.isNotEmpty) {
filteredResult.add(result.first);