mirror of
https://github.com/foss42/apidash.git
synced 2025-05-31 22:33:59 +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 isSelected = selectedId == id;
|
||||||
bool inEditMode = editRequestId == id;
|
bool inEditMode = editRequestId == id;
|
||||||
String nm = getEnvironmentTitle(name);
|
String nm = getEnvironmentTitle(name);
|
||||||
return Tooltip(
|
return GestureDetector(
|
||||||
|
onSecondaryTapUp: (isGlobal)
|
||||||
|
? null
|
||||||
|
: (TapUpDetails details) {
|
||||||
|
showItemCardMenu(context, details, onMenuSelected);
|
||||||
|
},
|
||||||
|
child: Tooltip(
|
||||||
message: nm,
|
message: nm,
|
||||||
triggerMode: TooltipTriggerMode.manual,
|
triggerMode: TooltipTriggerMode.manual,
|
||||||
waitDuration: const Duration(seconds: 1),
|
waitDuration: const Duration(seconds: 1),
|
||||||
@ -123,6 +129,7 @@ class SidebarEnvironmentCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user