-
Notifications
You must be signed in to change notification settings - Fork 270
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
inconsistency in MonthView #435
Labels
potential-enhancement
This label defines that we might work on this enhancement in future but can not make any promises.
Comments
Hi @bsutton, Please refer this default cell builder
|
shubham-jitiya-simform
added
the
duplicate
This issue or pull request already exists
label
Dec 30, 2024
thanks for the prompt response.
so I can see how that works now.
I would however again argue that there appears to be no reason for an
alternate api for the month vs week/day.
It would appear that a more consistent api could be created that has a
common method for styling the 'visual regions' of each view.
It feels like the api design for the month view got a little too tightly
linked to the underlying grid implementation.
The current implementation also means that I have to reproduce the default
cell builder to just override the background colour.
The api would be easier to customise if it allowed a user to fully
customise the styles without having to rebuild the layout.
Like the headerstyle it feels like there should be a body/region style that
allows the user to customise the font/background etc independently of the
layout.
my two cents worth.
…On Mon, Dec 30, 2024 at 8:13 PM shubham-jitiya-simform < ***@***.***> wrote:
Hi @bsutton <https://github.com/bsutton>,
In month view you can use FilledCell which has backgroundColor property
or return your own custom widget.
Please refer this default cell builder
Widget _defaultCellBuilder(
date,
List<CalendarEventData<T>> events,
isToday,
isInMonth,
hideDaysNotInMonth,
) {
if (hideDaysNotInMonth) {
return FilledCell<T>(
date: date,
shouldHighlight: isToday,
backgroundColor: isInMonth ? Constants.white : Constants.offWhite,
events: events,
isInMonth: isInMonth,
onTileTap: widget.onEventTap,
dateStringBuilder: widget.dateStringBuilder,
hideDaysNotInMonth: hideDaysNotInMonth,
);
}
return FilledCell<T>(
date: date,
shouldHighlight: isToday,
backgroundColor: isInMonth ? Constants.white : Constants.offWhite,
events: events,
onTileTap: widget.onEventTap,
onTileLongTap: widget.onEventLongTap,
dateStringBuilder: widget.dateStringBuilder,
onTileDoubleTap: widget.onEventDoubleTap,
hideDaysNotInMonth: hideDaysNotInMonth,
);
}
—
Reply to this email directly, view it on GitHub
<#435 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG32OFYNAPSKJLV3GR2LPL2IEFETAVCNFSM6AAAAABUKMP2HGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRVGIYTSNJQG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
.com>
|
also is there a reason why the second call to FilledCell in
_defaultCellBuilder is missing the 'onTileDoubleTap' argument.
It looks like it might be a bug?
…On Mon, Dec 30, 2024 at 8:13 PM shubham-jitiya-simform < ***@***.***> wrote:
Hi @bsutton <https://github.com/bsutton>,
In month view you can use FilledCell which has backgroundColor property
or return your own custom widget.
Please refer this default cell builder
Widget _defaultCellBuilder(
date,
List<CalendarEventData<T>> events,
isToday,
isInMonth,
hideDaysNotInMonth,
) {
if (hideDaysNotInMonth) {
return FilledCell<T>(
date: date,
shouldHighlight: isToday,
backgroundColor: isInMonth ? Constants.white : Constants.offWhite,
events: events,
isInMonth: isInMonth,
onTileTap: widget.onEventTap,
dateStringBuilder: widget.dateStringBuilder,
hideDaysNotInMonth: hideDaysNotInMonth,
);
}
return FilledCell<T>(
date: date,
shouldHighlight: isToday,
backgroundColor: isInMonth ? Constants.white : Constants.offWhite,
events: events,
onTileTap: widget.onEventTap,
onTileLongTap: widget.onEventLongTap,
dateStringBuilder: widget.dateStringBuilder,
onTileDoubleTap: widget.onEventDoubleTap,
hideDaysNotInMonth: hideDaysNotInMonth,
);
}
—
Reply to this email directly, view it on GitHub
<#435 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG32OFYNAPSKJLV3GR2LPL2IEFETAVCNFSM6AAAAABUKMP2HGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRVGIYTSNJQG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
.com>
|
it's also missing onTileLongTap. |
shubham-jitiya-simform
added
potential-enhancement
This label defines that we might work on this enhancement in future but can not make any promises.
and removed
duplicate
This issue or pull request already exists
labels
Jan 2, 2025
shubham-jitiya-simform
added a commit
that referenced
this issue
Jan 2, 2025
7 tasks
shubham-jitiya-simform
added a commit
that referenced
this issue
Jan 2, 2025
shubham-jitiya-simform
added a commit
that referenced
this issue
Jan 2, 2025
shubham-jitiya-simform
added a commit
that referenced
this issue
Jan 2, 2025
shubham-jitiya-simform
added a commit
that referenced
this issue
Jan 2, 2025
PRBaraiya
added a commit
that referenced
this issue
Jan 2, 2025
…_view fix: Fixes issue #435: 🐛 Fix tap issue for days not in month
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
potential-enhancement
This label defines that we might work on this enhancement in future but can not make any promises.
The DayView and the WeekView both have a 'backgroundColor' argument however the MonthView doesn't.
I'm trying to display the calendar in dark mode hence the requirement to sent the background color to black.
The text was updated successfully, but these errors were encountered: