You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may not be a bug, but as soon as i provide a custom cellBuilder my selected date cell is enforced with square properties on the overlay.
Not sure if there is a way to override this?
Pretty odd behaviour imo.
Tried looking into selectionShape, adding hard properties to the cell builder function, to no avail
Steps to reproduce
Step 1: Add a default SfDateRangePicker to your app.
Step 2: Add a cellBuilder returning a circular container with the date text inside.
Step 3: Select a date. The Overlayed color is square instead of circle.
Code sample
Code sample
[Add your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Stack Traces
Stack Traces
[Add the StackTraces here]
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
[Add your output here]
The text was updated successfully, but these errors were encountered:
joachimbulow
changed the title
adding cellBuilder makes selected date square
DateRangePicker: adding cellBuilder makes selected date square
Mar 11, 2025
Also seems like selectionColor is broken. At least i could NOT get it to work in single mode.
Instead i had to resort to overriding selectionColor getter from the theme.
// Having to create a custom theme just to color a selection is a bit sad, i must admit...//// This related to my original question, because my workaround will be to color the selection transparent when necessary :///classCustomDateRangePickerThemeDataextendsSfDateRangePickerThemeData {
finalBuildContext context;
CustomDateRangePickerThemeData(this.context);
@overrideColor?get selectionColor =>Colors.red;
}
Bug description
version: ^27.2.5
This may not be a bug, but as soon as i provide a custom
cellBuilder
my selected date cell is enforced with square properties on the overlay.Not sure if there is a way to override this?
Pretty odd behaviour imo.
Tried looking into
selectionShape
, adding hard properties to the cell builder function, to no availSteps to reproduce
Step 1: Add a default
SfDateRangePicker
to your app.Step 2: Add a
cellBuilder
returning a circular container with the date text inside.Step 3: Select a date. The Overlayed color is square instead of circle.
Code sample
Code sample
[Add your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
[Add your output here]
The text was updated successfully, but these errors were encountered: