mirror of
https://github.com/foss42/apidash.git
synced 2025-05-30 13:27:09 +08:00
can open the item menu on the right click for variables
This commit is contained in:
@ -48,7 +48,13 @@ class SidebarEnvironmentCard extends StatelessWidget {
|
||||
bool isSelected = selectedId == id;
|
||||
bool inEditMode = editRequestId == id;
|
||||
String nm = getEnvironmentTitle(name);
|
||||
return Tooltip(
|
||||
return GestureDetector(
|
||||
onSecondaryTapUp: (isGlobal)
|
||||
? null
|
||||
: (TapUpDetails details) {
|
||||
showItemCardMenu(context, details, onMenuSelected);
|
||||
},
|
||||
child: Tooltip(
|
||||
message: nm,
|
||||
triggerMode: TooltipTriggerMode.manual,
|
||||
waitDuration: const Duration(seconds: 1),
|
||||
@ -123,6 +129,7 @@ class SidebarEnvironmentCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user