|
|
@ -7,11 +7,13 @@ import 'package:diplomaticquarterapp/theme/colors.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:intl/intl.dart';
|
|
|
|
import 'package:intl/intl.dart';
|
|
|
|
import 'package:table_calendar/table_calendar.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:syncfusion_flutter_calendar/calendar.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import '../../../uitl/date_uitl.dart';
|
|
|
|
import '../../../uitl/date_uitl.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -24,6 +26,7 @@ class DocAvailableAppointments extends StatefulWidget {
|
|
|
|
static String selectedTime;
|
|
|
|
static String selectedTime;
|
|
|
|
bool isLiveCareAppointment;
|
|
|
|
bool isLiveCareAppointment;
|
|
|
|
final dynamic doctorSchedule;
|
|
|
|
final dynamic doctorSchedule;
|
|
|
|
|
|
|
|
|
|
|
|
DocAvailableAppointments({@required this.doctor, this.doctorSchedule, @required this.isLiveCareAppointment});
|
|
|
|
DocAvailableAppointments({@required this.doctor, this.doctorSchedule, @required this.isLiveCareAppointment});
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
@ -55,8 +58,8 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void didUpdateWidget(covariant DocAvailableAppointments oldWidget) {
|
|
|
|
void didUpdateWidget(covariant DocAvailableAppointments oldWidget) {
|
|
|
|
if (oldWidget.doctorSchedule != widget.doctorSchedule) {
|
|
|
|
if (oldWidget.doctorSchedule != widget.doctorSchedule) {
|
|
|
|
_calendarController.setSelectedDay(DateUtil.convertStringToDate(widget.doctorSchedule['Date']), isProgrammatic: true);
|
|
|
|
_onDaySelected(DateUtil.convertStringToDate(widget.doctorSchedule['Date']));
|
|
|
|
_onDaySelected(DateUtil.convertStringToDate(widget.doctorSchedule['Date']), List());
|
|
|
|
_calendarController.selectedDate = DateUtil.convertStringToDate(widget.doctorSchedule['Date']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
super.didUpdateWidget(oldWidget);
|
|
|
|
super.didUpdateWidget(oldWidget);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -99,28 +102,17 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
super.dispose();
|
|
|
|
super.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void _onDaySelected(DateTime day, List events) {
|
|
|
|
void _onDaySelected(DateTime day) {
|
|
|
|
final DateFormat formatter = DateFormat('yyyy-MM-dd');
|
|
|
|
final DateFormat formatter = DateFormat('yyyy-MM-dd');
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
this.selectedDate = DateUtil.getWeekDayMonthDayYearDateFormatted(day, language);
|
|
|
|
this.selectedDate = DateUtil.getWeekDayMonthDayYearDateFormatted(day, language);
|
|
|
|
openTimeSlotsPickerForDate(day, docFreeSlots);
|
|
|
|
openTimeSlotsPickerForDate(day, docFreeSlots);
|
|
|
|
DocAvailableAppointments.selectedDate = formatter.format(day);
|
|
|
|
DocAvailableAppointments.selectedDate = formatter.format(day);
|
|
|
|
print(DocAvailableAppointments.selectedDate);
|
|
|
|
_calendarController.selectedDate = day;
|
|
|
|
|
|
|
|
print(_calendarController.selectedDate);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void _onVisibleDaysChanged(DateTime first, DateTime last, CalendarFormat format) {
|
|
|
|
|
|
|
|
print('CALLBACK: _onVisibleDaysChanged');
|
|
|
|
|
|
|
|
print(first);
|
|
|
|
|
|
|
|
print(last);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void _onCalendarCreated(DateTime first, DateTime last, CalendarFormat format) {
|
|
|
|
|
|
|
|
print('CALLBACK: _onCalendarCreated');
|
|
|
|
|
|
|
|
print(first);
|
|
|
|
|
|
|
|
print(last);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return SingleChildScrollView(
|
|
|
|
return SingleChildScrollView(
|
|
|
@ -134,7 +126,8 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
padding: const EdgeInsets.only(left: 16, right: 16, bottom: 16),
|
|
|
|
padding: const EdgeInsets.only(left: 16, right: 16, bottom: 16),
|
|
|
|
child: Text(selectedDate, style: TextStyle(fontSize: 16.0, fontWeight: FontWeight.w600, letterSpacing: -0.64)),
|
|
|
|
child: Text(selectedDate, style: TextStyle(fontSize: 16.0, fontWeight: FontWeight.w600, letterSpacing: -0.64)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
DocAvailableAppointments.areSlotsAvailable
|
|
|
|
|
|
|
|
? Container(
|
|
|
|
height: 40,
|
|
|
|
height: 40,
|
|
|
|
child: ListView.builder(
|
|
|
|
child: ListView.builder(
|
|
|
|
controller: _scrollController,
|
|
|
|
controller: _scrollController,
|
|
|
@ -157,7 +150,12 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
|
|
|
|
: Center(
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.only(left: 12.0, right: 12.0),
|
|
|
|
|
|
|
|
child: Text(TranslationBase.of(context).noSlotsError, style: TextStyle(fontSize: 14.0, fontWeight: FontWeight.w600, letterSpacing: -0.46, color: CustomColors.grey)),
|
|
|
|
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -171,94 +169,37 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
clipBehavior: Clip.antiAlias,
|
|
|
|
clipBehavior: Clip.antiAlias,
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.only(bottom: 12),
|
|
|
|
padding: const EdgeInsets.only(bottom: 12),
|
|
|
|
child: TableCalendar(
|
|
|
|
|
|
|
|
locale: language == "en" ? 'en_US' : 'ar_SA',
|
|
|
|
|
|
|
|
calendarController: _calendarController,
|
|
|
|
|
|
|
|
events: _events,
|
|
|
|
|
|
|
|
initialCalendarFormat: CalendarFormat.month,
|
|
|
|
|
|
|
|
startDay: DateTime.now(),
|
|
|
|
|
|
|
|
formatAnimation: FormatAnimation.slide,
|
|
|
|
|
|
|
|
startingDayOfWeek: StartingDayOfWeek.sunday,
|
|
|
|
|
|
|
|
weekendDays: [DateTime.friday, DateTime.saturday],
|
|
|
|
|
|
|
|
availableGestures: AvailableGestures.horizontalSwipe,
|
|
|
|
|
|
|
|
availableCalendarFormats: const {
|
|
|
|
|
|
|
|
CalendarFormat.month: '',
|
|
|
|
|
|
|
|
CalendarFormat.week: '',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
calendarStyle: CalendarStyle(
|
|
|
|
|
|
|
|
outsideDaysVisible: false,
|
|
|
|
|
|
|
|
weekendStyle: TextStyle().copyWith(color: Colors.blue[800]),
|
|
|
|
|
|
|
|
holidayStyle: TextStyle().copyWith(color: Colors.blue[800]),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
daysOfWeekStyle: DaysOfWeekStyle(
|
|
|
|
|
|
|
|
weekendStyle: TextStyle().copyWith(color: Colors.black, fontSize: 11.0, fontWeight: FontWeight.w600),
|
|
|
|
|
|
|
|
weekdayStyle: TextStyle().copyWith(color: Colors.black, fontSize: 11.0, fontWeight: FontWeight.w600),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
headerStyle: HeaderStyle(centerHeaderTitle: true, formatButtonVisible: false, titleTextStyle: TextStyle(fontSize: 16, letterSpacing: -0.64, fontWeight: FontWeight.w600)),
|
|
|
|
|
|
|
|
builders: CalendarBuilders(
|
|
|
|
|
|
|
|
selectedDayBuilder: (context, date, _) {
|
|
|
|
|
|
|
|
return FadeTransition(
|
|
|
|
|
|
|
|
opacity: Tween(begin: 0.0, end: 1.0).animate(_animationController),
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: const EdgeInsets.all(4.0),
|
|
|
|
child: SfCalendar(
|
|
|
|
padding: const EdgeInsets.only(top: 5.0, left: 5.0),
|
|
|
|
controller: _calendarController,
|
|
|
|
color: Colors.transparent,
|
|
|
|
minDate: DateTime.now(),
|
|
|
|
width: 0,
|
|
|
|
showNavigationArrow: true,
|
|
|
|
height: 0,
|
|
|
|
headerStyle: CalendarHeaderStyle(textAlign: TextAlign.center, textStyle: TextStyle(fontSize: 14.0, fontWeight: FontWeight.w600, letterSpacing: -0.46)),
|
|
|
|
child: Text(
|
|
|
|
viewHeaderStyle: ViewHeaderStyle(dayTextStyle: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.46, color: CustomColors.black)),
|
|
|
|
'${date.day}',
|
|
|
|
view: CalendarView.month,
|
|
|
|
style: TextStyle().copyWith(fontSize: 14.0),
|
|
|
|
todayHighlightColor: CustomColors.green,
|
|
|
|
),
|
|
|
|
selectionDecoration: containerColorRadiusBorderWidth(Colors.transparent, 4, CustomColors.green, 2.5),
|
|
|
|
),
|
|
|
|
cellBorderColor: Colors.white,
|
|
|
|
);
|
|
|
|
dataSource: MeetingDataSource(_getDataSource()),
|
|
|
|
|
|
|
|
monthViewSettings: const MonthViewSettings(appointmentDisplayMode: MonthAppointmentDisplayMode.indicator, showTrailingAndLeadingDates: false, appointmentDisplayCount: 1),
|
|
|
|
|
|
|
|
onTap: (CalendarTapDetails details) {
|
|
|
|
|
|
|
|
_calendarController.selectedDate = details.date;
|
|
|
|
|
|
|
|
_onDaySelected(details.date);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
todayDayBuilder: (context, date, _) {
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
|
|
|
|
color: _calendarController.isSelected(date)
|
|
|
|
|
|
|
|
? Colors.green[400]
|
|
|
|
|
|
|
|
: _calendarController.isToday(date)
|
|
|
|
|
|
|
|
? Colors.transparent
|
|
|
|
|
|
|
|
: Color(0xff76cfb7),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
width: 40.0,
|
|
|
|
|
|
|
|
height: 40.0,
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
'${date.day}',
|
|
|
|
|
|
|
|
style: TextStyle().copyWith(
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
markersBuilder: (context, date, events, _) {
|
|
|
|
|
|
|
|
final children = <Widget>[];
|
|
|
|
|
|
|
|
if (events.isNotEmpty) {
|
|
|
|
|
|
|
|
children.add(
|
|
|
|
|
|
|
|
Positioned(
|
|
|
|
|
|
|
|
right: 4,
|
|
|
|
|
|
|
|
bottom: 4,
|
|
|
|
|
|
|
|
child: _buildEventsMarker(date, events),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return children;
|
|
|
|
List<Meeting> _getDataSource() {
|
|
|
|
},
|
|
|
|
final List<Meeting> meetings = <Meeting>[];
|
|
|
|
),
|
|
|
|
|
|
|
|
onDaySelected: (date, event, _) {
|
|
|
|
_events.forEach((key, value) {
|
|
|
|
_onDaySelected(date, event);
|
|
|
|
final DateTime startTime = DateTime(key.year, key.month, key.day, 9, 0, 0);
|
|
|
|
_animationController.forward(from: 0.0);
|
|
|
|
final DateTime endTime = startTime.add(const Duration(hours: 2));
|
|
|
|
},
|
|
|
|
meetings.add(Meeting("", startTime, endTime, CustomColors.green, false));
|
|
|
|
onVisibleDaysChanged: _onVisibleDaysChanged,
|
|
|
|
});
|
|
|
|
onCalendarCreated: _onCalendarCreated,
|
|
|
|
return meetings;
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
openTimeSlotsPickerForDate(DateTime dateStart, List<TimeSlot> freeSlots) {
|
|
|
|
openTimeSlotsPickerForDate(DateTime dateStart, List<TimeSlot> freeSlots) {
|
|
|
@ -270,14 +211,12 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
if (dayEvents.length != 0)
|
|
|
|
if (dayEvents.length != 0) {
|
|
|
|
DocAvailableAppointments.areSlotsAvailable = true;
|
|
|
|
DocAvailableAppointments.areSlotsAvailable = true;
|
|
|
|
else
|
|
|
|
|
|
|
|
DocAvailableAppointments.areSlotsAvailable = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectedButtonIndex = 0;
|
|
|
|
selectedButtonIndex = 0;
|
|
|
|
|
|
|
|
|
|
|
|
DocAvailableAppointments.selectedTime = dayEvents[selectedButtonIndex].isoTime;
|
|
|
|
DocAvailableAppointments.selectedTime = dayEvents[selectedButtonIndex].isoTime;
|
|
|
|
|
|
|
|
} else
|
|
|
|
|
|
|
|
DocAvailableAppointments.areSlotsAvailable = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -299,7 +238,7 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
selectedDateJSON = freeSlotsResponse[0];
|
|
|
|
selectedDateJSON = freeSlotsResponse[0];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
openTimeSlotsPickerForDate(DateUtil.convertStringToDate(selectedDateJSON), docFreeSlots);
|
|
|
|
openTimeSlotsPickerForDate(DateUtil.convertStringToDate(selectedDateJSON), docFreeSlots);
|
|
|
|
_calendarController.setFocusedDay(DateUtil.convertStringToDate(selectedDateJSON));
|
|
|
|
_calendarController.selectedDate = DateUtil.convertStringToDate(selectedDateJSON);
|
|
|
|
return _eventsParsed;
|
|
|
|
return _eventsParsed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -321,7 +260,8 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
|
|
|
|
|
|
|
|
Widget getSelectedButton(int index) {
|
|
|
|
Widget getSelectedButton(int index) {
|
|
|
|
return RaisedButton(
|
|
|
|
return RaisedButton(
|
|
|
|
color: CustomColors.green, //Color of the border
|
|
|
|
color: CustomColors.green,
|
|
|
|
|
|
|
|
//Color of the border
|
|
|
|
textColor: Colors.white,
|
|
|
|
textColor: Colors.white,
|
|
|
|
elevation: 0,
|
|
|
|
elevation: 0,
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
@ -352,10 +292,7 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
_events.clear(),
|
|
|
|
_events.clear(),
|
|
|
|
_events = value,
|
|
|
|
_events = value,
|
|
|
|
if (widget.doctorSchedule != null)
|
|
|
|
if (widget.doctorSchedule != null)
|
|
|
|
{
|
|
|
|
{_onDaySelected(DateUtil.convertStringToDate(widget.doctorSchedule['Date'])), _calendarController.selectedDate = DateUtil.convertStringToDate(widget.doctorSchedule['Date'])}
|
|
|
|
_calendarController.setSelectedDay(DateUtil.convertStringToDate(widget.doctorSchedule['Date']), isProgrammatic: true),
|
|
|
|
|
|
|
|
_onDaySelected(DateUtil.convertStringToDate(widget.doctorSchedule['Date']), List())
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -403,29 +340,49 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
|
|
|
|
this.language = languageID;
|
|
|
|
this.language = languageID;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MeetingDataSource extends CalendarDataSource {
|
|
|
|
|
|
|
|
MeetingDataSource(List<Meeting> source) {
|
|
|
|
|
|
|
|
appointments = source;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget _buildEventsMarker(DateTime date, List events) {
|
|
|
|
@override
|
|
|
|
return Container(
|
|
|
|
DateTime getStartTime(int index) {
|
|
|
|
decoration: containerColorRadiusBorderWidth(
|
|
|
|
return _getMeetingData(index).from;
|
|
|
|
_calendarController.isSelected(date)
|
|
|
|
}
|
|
|
|
? CustomColors.green
|
|
|
|
@override
|
|
|
|
: _calendarController.isToday(date)
|
|
|
|
DateTime getEndTime(int index) {
|
|
|
|
? CustomColors.green.withOpacity(0.5)
|
|
|
|
return _getMeetingData(index).to;
|
|
|
|
: Colors.white,
|
|
|
|
}
|
|
|
|
200,
|
|
|
|
@override
|
|
|
|
_calendarController.isSelected(date) ? CustomColors.green : Colors.black,
|
|
|
|
String getSubject(int index) {
|
|
|
|
2),
|
|
|
|
return _getMeetingData(index).eventName;
|
|
|
|
width: 40.0,
|
|
|
|
}
|
|
|
|
height: 40.0,
|
|
|
|
@override
|
|
|
|
child: Center(
|
|
|
|
Color getColor(int index) {
|
|
|
|
child: Text(
|
|
|
|
return _getMeetingData(index).background;
|
|
|
|
'${date.day}',
|
|
|
|
|
|
|
|
style: TextStyle().copyWith(
|
|
|
|
|
|
|
|
color: _calendarController.isSelected(date) ? Colors.white : Colors.black,
|
|
|
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|
|
|
bool isAllDay(int index) {
|
|
|
|
|
|
|
|
return _getMeetingData(index).isAllDay;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Meeting _getMeetingData(int index) {
|
|
|
|
|
|
|
|
final dynamic meeting = appointments[index];
|
|
|
|
|
|
|
|
Meeting meetingData;
|
|
|
|
|
|
|
|
if (meeting is Meeting) {
|
|
|
|
|
|
|
|
meetingData = meeting;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return meetingData;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Meeting {
|
|
|
|
|
|
|
|
Meeting(this.eventName, this.from, this.to, this.background, this.isAllDay);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String eventName;
|
|
|
|
|
|
|
|
DateTime from;
|
|
|
|
|
|
|
|
DateTime to;
|
|
|
|
|
|
|
|
Color background;
|
|
|
|
|
|
|
|
bool isAllDay;
|
|
|
|
}
|
|
|
|
}
|
|
|
|