|
@@ -20,6 +20,7 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
bool _isShowSchedulePopup = false;
|
|
|
bool _isNeedCloseSchedulePopup = false;
|
|
|
GlobalKey moreSchedulePopupKey = GlobalKey();
|
|
|
+ GlobalKey schedulePopupKey = GlobalKey();
|
|
|
@override
|
|
|
void initState() {
|
|
|
super.initState();
|
|
@@ -49,7 +50,7 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
void _onPopupSchedule(e, GlobalKey key) {
|
|
|
setState(() {
|
|
|
_isShowSchedulePopup = true;
|
|
|
- moreSchedulePopupKey = key;
|
|
|
+ schedulePopupKey = key;
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -83,7 +84,7 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
Listener(
|
|
|
behavior: HitTestBehavior.deferToChild,
|
|
|
onPointerUp: (event) {
|
|
|
- _isShowMoreSchedulePopup = false;
|
|
|
+ _isNeedCloseMoreSchedulePopup = false;
|
|
|
},
|
|
|
child: _buildMoreSchedulePopup(moreSchedulePopupKey),
|
|
|
),
|
|
@@ -96,7 +97,7 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
});
|
|
|
popupLayerController.onCloseSchedulePopup.emit(this, false);
|
|
|
},
|
|
|
- child: _buildSchedulePopup(moreSchedulePopupKey),
|
|
|
+ child: _buildSchedulePopup(schedulePopupKey),
|
|
|
)
|
|
|
],
|
|
|
);
|