Skip to content

Commit 3aa84ee

Browse files
Merge pull request syncfusion-content#230 from Syncfusion-Content/development
DOCINFRA-2341_merged_using_automation
2 parents 9b9e4e5 + a817f5e commit 3aa84ee

File tree

138 files changed

+2869
-1019
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+2869
-1019
lines changed

Flutter/DateRangePicker/customizations.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ Widget build(BuildContext context) {
6666

6767
![Customizations Date Range Picker](images/customizations/customizations.png)
6868

69+
>**NOTE**
70+
* Based on the given decoration, cell decoration will be rendered in the following order: blackout dates, special dates, disable dates, today date, weekend dates, leading or trailing dates, and dates decoration.
71+
6972
## Month format
7073
You can customize the month format of the `DateRangePicker` using the [monthFormat](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/SfDateRangePicker/monthFormat.html) property.
7174

@@ -169,6 +172,9 @@ Widget build(BuildContext context) {
169172

170173
![Year cell customization Date Range Picker](images/customizations/yearcell_customization.png)
171174

175+
>**NOTE**
176+
* Based on the given decoration, cell decoration will be rendered in the following order: disable dates, today date, leading or trailing dates, and dates decoration.
177+
172178
## See also
173179

174180
* [How to customize the month cell of the Flutter date range picker (SfDateRangePicker)?](https://www.syncfusion.com/kb/11307/how-to-customize-the-month-cell-of-the-flutter-date-range-picker-sfdaterangepicker)

Flutter/DateRangePicker/localization.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ documentation: ug
1111

1212
By default, the calendar widget supports US English localizations. You can change other languages by specifying the `MaterialApp` properties and adding the `flutter_localizations` package to your application.
1313

14-
As of February 2020, [flutter package](https://flutter.dev/docs/development/accessibility-and-localization/internationalization) supports 77 languages.
15-
1614
To use `flutter_localizations`, add the package as a dependency to `pubspec.yaml` file.
1715

1816
{% highlight dart %}

Flutter/Licensing/licensing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ The License key registration is no longer required for Flutter from version 18.3
1414

1515
The Flutter controls from Syncfusion can be used without registering the license keys.
1616

17-
N> If you are using Syncfusion controls prior to version 18.3.0.x, please follow this [link](https://help.syncfusion.com/common/essential-studio/licensing/license-key#flutter) to register your license key.
17+
>**Note**: If you are using Syncfusion controls prior to version 18.3.0.x, please follow this [link](https://help.syncfusion.com/common/essential-studio/licensing/registering-license-keys#flutter) to register your license key.

Flutter/Release-notes/v20.1.0.47.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Essential Studio for Flutter 2022 volume 1 Main release Release Notes
3+
description: Essential Studio for Flutter 2022 volume 1 Main release Release Notes
4+
platform: flutter
5+
documentation: ug
6+
---
7+
8+
# Essential Studio for Flutter Release Notes
9+
10+
{% include release-info.html date="April 4, 2022" version="v20.1.0.47" %}
11+
12+
{% directory path: _includes/release-notes/v20.1.0.47 %}
13+
14+
{% include {{file.url}} %}
15+
16+
{% enddirectory %}

Flutter/calendar/appointments.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,47 @@ class _AppointmentDataSource extends CalendarDataSource {
408408

409409
![Adding recurrence appointment](images/appointments/recurrence-appointment.png)
410410

411+
### Recurrence appointments on last day of month
412+
413+
To create recurring appointments on the last day of the month, use BYMONTHDAY=-1 in the flutter event calendar.
414+
415+
{% tabs %}
416+
{% highlight Dart %}
417+
418+
@override
419+
Widget build(BuildContext context) {
420+
return Scaffold(
421+
body: SfCalendar(
422+
view: CalendarView.month,
423+
dataSource: _getCalendarDataSource(),
424+
monthViewSettings: const MonthViewSettings(
425+
appointmentDisplayMode: MonthAppointmentDisplayMode.appointment),
426+
));
427+
}
428+
}
429+
430+
DataSource _getCalendarDataSource() {
431+
final List<Appointment> appointments = <Appointment>[];
432+
appointments.add(Appointment(
433+
startTime: DateTime(2022, 2, 27, 9),
434+
endTime: DateTime(2022, 2, 27, 10),
435+
subject: 'Last day of month',
436+
color: Colors.purple,
437+
recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=-1;INTERVAL=1;COUNT=10'));
438+
return DataSource(appointments);
439+
}
440+
441+
class DataSource extends CalendarDataSource {
442+
DataSource(List<Appointment> source) {
443+
appointments = source;
444+
}
445+
}
446+
447+
{% endhighlight %}
448+
{% endtabs %}
449+
450+
![Recurrence appointment on last day of month](images/appointments/lastDayOfMonth.png)
451+
411452
### Creating custom recurrence appointment
412453

413454
For creating custom recurrence appointment, you need to create a custom class `Meeting` with mandatory fields `from`, `to`, and `recurrenceRule`.
73 KB
Loading
81.1 KB
Loading

Flutter/calendar/localization.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ documentation: ug
1111

1212
By default, the calendar widget supports US English localizations. You can change the other languages by specifying the `MaterialApp` properties and adding the `flutter_localizations` package to your application.
1313

14-
As of February 2020, [flutter package](https://flutter.dev/docs/development/accessibility-and-localization/internationalization) supports 77 languages.
15-
1614
To use `flutter_localizations`, add the package as dependency to `pubspec.yaml` file.
1715

1816
{% highlight dart %}

Flutter/calendar/timeslot-views.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,28 @@ Widget build(BuildContext context) {
118118

119119
![Flexible working days and working hours](images/timeslot-views/starthour-endhour.png)
120120

121+
## Number of days in view
122+
You can customize the days count by setting the [numberOfDaysInView]() property of `timeSlotViewSettings` in the calendar.
123+
124+
{% tabs %}
125+
{% highlight Dart %}
126+
127+
@override
128+
Widget build(BuildContext context) {
129+
return MaterialApp(
130+
home: Scaffold(
131+
body: SfCalendar(
132+
view: CalendarView.week,
133+
timeSlotViewSettings: const TimeSlotViewSettings(numberOfDaysInView: 3),
134+
)),
135+
);
136+
}
137+
138+
{% endhighlight %}
139+
{% endtabs %}
140+
141+
![Number of days in view](images/timeslot-views/numberOfDaysInView.png)
142+
121143
>**NOTE**
122144
* The `nonWorkingDays` property will applicable only for `workWeek` and `timelineWorkWeek` views only, and not applicable for the remaining views.
123145
* Calendar Appointments UI, which does not fall within the `startHour` and `endHour` will not be visible and if it falls partially, it will be clipped.
@@ -530,6 +552,9 @@ Widget build(BuildContext context) {
530552

531553
![Allday panel Background color](images/getting-started/alldayPanelColor.jpg)
532554

555+
>**NOTE**
556+
* It is applicable for day, week, workweek, timeline day, timeline week, and timeline workweek views.
557+
533558
## See also
534559

535560
* [Time label customization in the Flutter event calendar (SfCalendar)](https://www.syncfusion.com/kb/11008/how-to-customize-the-time-label-in-the-flutter-event-calendar-sfcalendar)

Flutter/cartesian-charts/annotations.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/
5252
To position the annotation based on axis, set the [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/x.html) and [`y`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/y.html) properties based on axis range values, and set the [`coordinateUnit`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html) value as [`CoordinateUnit.point`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html).
5353

5454

55-
{% highlight dart %}
55+
{% highlight dart hl_lines="15 17" %}
5656

5757
@override
5858
Widget build(BuildContext context) {
@@ -67,8 +67,10 @@ To position the annotation based on axis, set the [`x`](https://pub.dev/document
6767
child: const Text('Text')
6868
),
6969
coordinateUnit: CoordinateUnit.point,
70-
x: 20, // x position of annotation
71-
y: 40 // y position of annotation
70+
// x position of annotation
71+
x: 20,
72+
// y position of annotation
73+
y: 40
7274
)
7375
]
7476
)
@@ -84,7 +86,7 @@ To position the annotation based on axis, set the [`x`](https://pub.dev/document
8486

8587
To position the annotation based on the pixel values, set the [`CoordinateUnit`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html) value as [`CoordinateUnit.logicalPixel`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html), and the pixel values in [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/x.html) and [`y`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/y.html) properties of annotation as shown in the following code snippet.
8688

87-
{% highlight dart %}
89+
{% highlight dart hl_lines="15" %}
8890

8991
@override
9092
Widget build(BuildContext context) {
@@ -121,7 +123,7 @@ To position the annotation based on the pixel values, set the [`CoordinateUnit`]
121123
To position the annotation based on the percentage values, set the [`CoordinateUnit`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html) value as [`CoordinateUnit.percentage`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html), and the percentage values in [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/x.html) and [`y`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/y.html) properties of annotation as shown in the following code snippet.
122124

123125

124-
{% highlight dart %}
126+
{% highlight dart hl_lines="18" %}
125127

126128
@override
127129
Widget build(BuildContext context) {
@@ -175,7 +177,7 @@ To position the annotation based on the percentage values, set the [`CoordinateU
175177

176178
Annotations can be placed with respect to either [`AnnotationRegion.plotArea`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/AnnotationRegion.html) or [`AnnotationRegion.chart`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/AnnotationRegion.html) using [`region`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/region.html) property.
177179

178-
{% highlight dart %}
180+
{% highlight dart hl_lines="13" %}
179181

180182
@override
181183
Widget build(BuildContext context) {
@@ -210,7 +212,7 @@ Annotations can be placed with respect to either [`AnnotationRegion.plotArea`](h
210212

211213
The following code example demonstrates how to set the [`horizontalAlignment`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/horizontalAlignment.html) for annotation
212214

213-
{% highlight dart %}
215+
{% highlight dart hl_lines="17" %}
214216

215217
@override
216218
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)