Latest source merged from Syncfusion
This commit is contained in:
Родитель
edb7f34a50
Коммит
63629b972d
|
@ -284,59 +284,6 @@ _AppointmentDataSource _getCalendarDataSource() {
|
|||
>**NOTE**
|
||||
* Appointment which lasts through an entire day (exact 24 hours) will be considered as all day appointment without setting the IsAllDay property. For example, 06/12/2019 12:00AM to 06/12/2019 12:00AM.
|
||||
|
||||
### All day appointment expansion
|
||||
|
||||
When you have more appointments with all day, all-day panel was shown like the below image.
|
||||
|
||||
{% tabs %}
|
||||
{% highlight Dart %}
|
||||
|
||||
_AppointmentDataSource _getCalendarDataSource() {
|
||||
List<Appointment> appointments = <Appointment>[];
|
||||
appointments.add(Appointment(
|
||||
startTime: DateTime.now(),
|
||||
endTime: DateTime.now().add(Duration(minutes: 10)),
|
||||
subject: 'Meeting',
|
||||
color: Colors.blue,
|
||||
isAllDay: true,
|
||||
));
|
||||
appointments.add(Appointment(
|
||||
startTime: DateTime.now(),
|
||||
endTime: DateTime.now().add(Duration(minutes: 10)),
|
||||
subject: 'Planning',
|
||||
color: Colors.green,
|
||||
isAllDay: true,
|
||||
));
|
||||
appointments.add(Appointment(
|
||||
startTime: DateTime.now(),
|
||||
endTime: DateTime.now().add(Duration(minutes: 10)),
|
||||
subject: 'Retrospective',
|
||||
color: Colors.pinkAccent,
|
||||
isAllDay: true,
|
||||
));
|
||||
appointments.add(Appointment(
|
||||
startTime: DateTime.now(),
|
||||
endTime: DateTime.now().add(Duration(minutes: 10)),
|
||||
subject: 'Customer meeting',
|
||||
color: Colors.teal,
|
||||
isAllDay: true,
|
||||
));
|
||||
appointments.add(Appointment(
|
||||
startTime: DateTime.now(),
|
||||
endTime: DateTime.now().add(Duration(minutes: 10)),
|
||||
subject: 'Sprint planning',
|
||||
color: Colors.blue,
|
||||
isAllDay: true,
|
||||
));
|
||||
|
||||
return _AppointmentDataSource(appointments);
|
||||
}
|
||||
|
||||
{% endhighlight %}
|
||||
{% endtabs %}
|
||||
|
||||
![All day appointment expansion](images/appointments/all-day-appointment-with-expansion.png)
|
||||
|
||||
## Recurrence appointment
|
||||
|
||||
Recurring appointment on a daily, weekly, monthly, or yearly interval. Recurring appointments can be created by setting the [recurrenceRule](https://pub.dev/documentation/syncfusion_flutter_calendar/latest/calendar/Appointment/recurrenceRule.html) property in `Appointment`.
|
||||
|
|
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 24 KiB |
Загрузка…
Ссылка в новой задаче