fix: change library switcher activation from long press to double tap

This commit is contained in:
Dr.Blank 2025-04-19 15:37:28 +05:30
parent 6ce4537985
commit 7edd21ab01
No known key found for this signature in database
GPG key ID: BA5F87FF0560C57B

View file

@ -124,7 +124,7 @@ class ScaffoldWithNavBar extends HookConsumerWidget {
if (item.name == 'Library') { if (item.name == 'Library') {
return GestureDetector( return GestureDetector(
onSecondaryTap: () => showLibrarySwitcher(context, ref), onSecondaryTap: () => showLibrarySwitcher(context, ref),
onLongPress: () => showLibrarySwitcher(context, ref), onDoubleTap: () => showLibrarySwitcher(context, ref),
child: child:
destinationWidget, // Wrap the actual NavigationDestination destinationWidget, // Wrap the actual NavigationDestination
); );