state.dart 930 B

123456789101112131415161718192021222324252627282930
  1. import 'package:get/get.dart';
  2. import 'package:table_calendar/table_calendar.dart';
  3. import '../../../common/models/index.dart';
  4. class MeetingState {
  5. // title
  6. final _title = "".obs;
  7. set title(value) => _title.value = value;
  8. get title => _title.value;
  9. final _format = Rx<CalendarFormat>(CalendarFormat.week);
  10. set format(CalendarFormat value) => _format.value = value;
  11. CalendarFormat get format => _format.value;
  12. final _focusedDay = Rx<DateTime>(DateTime.now());
  13. set focusedDay(DateTime value) => _focusedDay.value = value;
  14. DateTime get focusedDay => _focusedDay.value;
  15. final _selectedDay = Rx<DateTime?>(null);
  16. set selectedDay(DateTime? value) => _selectedDay.value = value;
  17. DateTime? get selectedDay => _selectedDay.value;
  18. final RxList<MeetingInfoModel> meetingList = <MeetingInfoModel>[].obs;
  19. // 配置文件
  20. final Rx<MeetingConfigModel?> meetingConfig = Rx<MeetingConfigModel?>(null);
  21. }