|
@@ -40,7 +40,15 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
return _isShowPopup
|
|
|
- ? _buildMoreSchedulePopup(moreSchedulePopupKey)
|
|
|
+ ? Listener(
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ onPointerUp: (event) {
|
|
|
+ setState(() {
|
|
|
+ _isShowPopup = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ child: _buildMoreSchedulePopup(moreSchedulePopupKey),
|
|
|
+ )
|
|
|
: Container();
|
|
|
}
|
|
|
|
|
@@ -66,9 +74,6 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
],
|
|
|
),
|
|
|
width: max(triggerSize.width, 220),
|
|
|
- // height: 800,
|
|
|
- // child: Text('Position: ${triggerOffset.dx} : ${triggerOffset.dy}'),
|
|
|
-
|
|
|
child: MoreSchedulePopup(
|
|
|
scheduleData: popupLayerController.currMoreScheduleData,
|
|
|
),
|