1234567891011121314151617181920212223242526272829303132 |
- import 'package:calendar_view/utils/calendar_util.dart';
- import 'package:calendar_view/utils/event_type.dart';
- import 'package:flutter/material.dart';
- import 'package:get/get.dart';
- class PopupLayerController extends GetxController {
- PopupLayerController();
- /// 弹出层【显示更多日程】事件通知
- FEventHandler<GlobalKey> onPopupMoreSchedule = FEventHandler<GlobalKey>();
- /// 全局点击事件通知
- FEventHandler<PointerEvent> onGlobalClick = FEventHandler<PointerEvent>();
- /// Popup 弹出层相关的数据
- /// 当前需要显示更多的日程数据
- MonthViewDayStructure currMoreScheduleData = MonthViewDayStructure(
- index: 1,
- date: DateTime.now(),
- ); // 当前显示更多日程的下标
- void handlePopupMoreSchedule(
- GlobalKey key, MonthViewDayStructure moreScheduleData) {
- currMoreScheduleData = moreScheduleData;
- onPopupMoreSchedule.emit(this, key);
- }
- @override
- void onInit() {
- super.onInit();
- }
- }
|