|
@@ -20,13 +20,14 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
bool _isShowSchedulePopup = false;
|
|
|
bool _isNeedCloseSchedulePopup = false;
|
|
|
GlobalKey moreSchedulePopupKey = GlobalKey();
|
|
|
- GlobalKey schedulePopupKey = GlobalKey();
|
|
|
+ GlobalKey scheduleDetailPopupKey = GlobalKey();
|
|
|
@override
|
|
|
void initState() {
|
|
|
super.initState();
|
|
|
popupLayerController.onPopupMoreSchedule.addListener(_onPopupMoreSchedule);
|
|
|
popupLayerController.onGlobalClick.addListener(_onGlobalClick);
|
|
|
- popupLayerController.onPopupSchedule.addListener(_onPopupSchedule);
|
|
|
+ popupLayerController.onPopupScheduleDatail
|
|
|
+ .addListener(_onPopupScheduleDatail);
|
|
|
}
|
|
|
|
|
|
@override
|
|
@@ -35,7 +36,8 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
popupLayerController.onPopupMoreSchedule
|
|
|
.removeListener(_onPopupMoreSchedule);
|
|
|
popupLayerController.onGlobalClick.removeListener(_onGlobalClick);
|
|
|
- popupLayerController.onPopupSchedule.removeListener(_onPopupSchedule);
|
|
|
+ popupLayerController.onPopupScheduleDatail
|
|
|
+ .removeListener(_onPopupScheduleDatail);
|
|
|
}
|
|
|
|
|
|
/// 收到显示更多日程的事件
|
|
@@ -46,11 +48,11 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- /// 收到显示日程的事件
|
|
|
- void _onPopupSchedule(e, GlobalKey key) {
|
|
|
+ /// 收到显示日程详情的事件
|
|
|
+ void _onPopupScheduleDatail(e, GlobalKey key) {
|
|
|
setState(() {
|
|
|
_isShowSchedulePopup = true;
|
|
|
- schedulePopupKey = key;
|
|
|
+ scheduleDetailPopupKey = key;
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -97,7 +99,7 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
_isNeedCloseSchedulePopup = false;
|
|
|
});
|
|
|
},
|
|
|
- child: _buildSchedulePopup(schedulePopupKey),
|
|
|
+ child: _buildScheduleDetailPopup(scheduleDetailPopupKey),
|
|
|
)
|
|
|
],
|
|
|
);
|
|
@@ -128,7 +130,7 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
child: MoreSchedulePopup(
|
|
|
scheduleData: popupLayerController.currMoreScheduleData,
|
|
|
onTapShowSchedule: (value) {
|
|
|
- popupLayerController.handlePopupSchedule(
|
|
|
+ popupLayerController.handlePopupScheduleDetail(
|
|
|
value,
|
|
|
popupLayerController.currMoreScheduleData,
|
|
|
);
|
|
@@ -141,7 +143,7 @@ class _PopupLayerState extends State<PopupLayer> {
|
|
|
|
|
|
/// 只做容器而无需负责内容
|
|
|
/// [trigger] 触发器的 key
|
|
|
- Widget _buildSchedulePopup(GlobalKey trigger) {
|
|
|
+ Widget _buildScheduleDetailPopup(GlobalKey trigger) {
|
|
|
final Size triggerSize = getWidgetSize(trigger);
|
|
|
final Offset triggerOffset = getWidgetOffset(trigger);
|
|
|
return Flow(
|