Skip to content

FLUT-964938 - [Others] Added an improvement to the SfDateRangePicker UG documentation #1258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Flutter/DateRangePicker/Callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ documentation: ug
---

# Callbacks in Flutter Date Range Picker (SfDateRangePicker)
Calendar supports the `ViewChangedCallback` and `SelectionChangedCallback` to interact with the Flutter date range picker.
DateRangePikcer supports the `DateRangePickerViewChangedCallback` and `DateRangePickerSelectionChangedCallback` to interact with the Flutter date range picker.

## View changed callback
The [onViewChanged](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/SfDateRangePicker/onViewChanged.html) callback triggers when the current view swiped to previous or next view, picker view switched to another picker view.

* `visibleDateRange` - returns the start and end dates of the current visible month.
* [visibleDateRange](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/DateRangePickerViewChangedArgs/visibleDateRange.html) - returns the start and end dates of the current visible month.
* [view](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/DateRangePickerViewChangedArgs/view.html) - returns the current view of the date range picker.

{% tabs %}
{% highlight dart hl_lines="6 7 8" %}
Expand All @@ -39,7 +40,7 @@ Widget build(BuildContext context) {
## Selection changed callback
The [onSelectionChanged](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/SfDateRangePicker/onSelectionChanged.html) callback triggers when selecting the dates from the date picker.

* `args.value` - returns the dates based on the selection mode.
* [args.value](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/DateRangePickerSelectionChangedArgs/value.html) - returns the dates based on the selection mode.

{% tabs %}
{% highlight dart hl_lines="7 8 9 10 11 12 13 14 15 16 17 18" %}
Expand Down
6 changes: 3 additions & 3 deletions Flutter/DateRangePicker/accessibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ documentation: ug
# Accessibility in Flutter DateRangePicker (SfDateRangePicker)

## Screen reader support
The `SfDateRangePicker` can easily be accessed by screen readers. Please find the following table to get spoken feedback about the inner element contents of the screen.
The [SfDateRangePicker](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/SfDateRangePicker-class.html) can easily be accessed by screen readers. Please find the following table to get spoken feedback about the inner element contents of the screen.

### Month view

Expand Down Expand Up @@ -75,7 +75,7 @@ The following APIs allows you to customize the colors of the following elements.

## Large fonts

The `SfDateRangePicker` font size can be adjusted automatically based on device settings and the font size scaled based on the `MediaQueryData.textScaleFactor`. It also allows you to change the font size of all elements in date range picker.
The [SfDateRangePicker](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/SfDateRangePicker-class.html) font size can be adjusted automatically based on device settings and the font size scaled based on the `MediaQueryData.textScaleFactor`. It also allows you to change the font size of all elements in date range picker.
* [todayTextStyle](https://help.syncfusion.com/flutter/daterangepicker/customizations)
* [leadingDatesTextStyle](https://help.syncfusion.com/flutter/daterangepicker/customizations)
* [trailingDatesTextStyle](https://help.syncfusion.com/flutter/daterangepicker/customizations)
Expand All @@ -89,7 +89,7 @@ The `SfDateRangePicker` font size can be adjusted automatically based on device

## Keyboard navigation

The following keyboard interactions are supported by the `SfDateRangePicker`.
The following keyboard interactions are supported by the [SfDateRangePicker](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/SfDateRangePicker-class.html).

| Key | Description |
|-----------------------|----------------------------------------------------------------------------------------------------------------|
Expand Down
8 changes: 4 additions & 4 deletions Flutter/DateRangePicker/builders.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ The [DateRangePickerCellBuilder](https://pub.dev/documentation/syncfusion_flutte

[DateRangePickerCellDetails](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/DateRangePickerCellDetails-class.html): Returns the details of the cell.

* `date`: The date associate with the cell.
* `bound`: Returns the cell bounds.
* `visibleDates`: The visible dates of the current view.
* [date](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/DateRangePickerCellDetails/date.html): The date associate with the cell.
* [bounds](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/DateRangePickerCellDetails/bounds.html): Returns the cell bounds.
* [visibleDates](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/DateRangePickerCellDetails/visibleDates.html): The visible dates of the current view.

{% tabs %}
{% highlight dart hl_lines="12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63" %}
Expand Down Expand Up @@ -121,7 +121,7 @@ class MyAppState extends State<MyApp> {
![Cell builder](images/builders/cell-builder.jpg)

>**NOTE**
* Use [HijriDateRangePickerCellDetails]() for the [SfHijriDateRangePicker](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/SfHijriDateRangePicker-class.html).
* Use [HijriDateRangePickerCellDetails](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/HijriDateRangePickerCellDetails-class.html) for the [SfHijriDateRangePicker](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/SfHijriDateRangePicker-class.html).


## See also
Expand Down
Loading