Skip to content
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

Need Help Removing days which is not in current month #141

Closed
vichuer opened this issue Nov 26, 2022 · 5 comments
Closed

Need Help Removing days which is not in current month #141

vichuer opened this issue Nov 26, 2022 · 5 comments
Labels
enhancement New feature or request in progress This label defines issues that are in progress. priority:1 Bug/Enhancement with highest priority.

Comments

@vichuer
Copy link

vichuer commented Nov 26, 2022

I need help with this amazing package. Is there a way to remove the days which is not in current month?

@PRBaraiya
Copy link
Collaborator

Hi, @vichuer you can provide cellBuilder property in MonthView and Use FilledCell widget that is provided by package.
this will only hide the dates that does not falls under current month. hidded date cells will still take the space.

cellBuilder: (date, events, isToday, isInMonth) {
    if(isInMonth) return SizedBox.shrink();

    return FilledCell(
        date: date,
        shouldHighlight: isToday,
        backgroundColor: Constants.offWhite,
        events: events,
        // onTileTap: onEventTap,
        // dateStringBuilder: dateStringBuilder,
    );    
},

@PRBaraiya
Copy link
Collaborator

Let me know if this helps.

@PRBaraiya PRBaraiya reopened this Nov 27, 2022
@PRBaraiya PRBaraiya added question Further information is requested waiting-for-resoponse Waiting for someone to respond. labels Nov 27, 2022
@ebelevics
Copy link

I was also looking for this, but for me the problem is that week with non_month days still have cell space remained. Calendar doesn't dynamically change size if month weeks are 5 instead of 6.

@PRBaraiya PRBaraiya added enhancement New feature or request priority:3 Bug/Enhancement with priority level 3. and removed waiting-for-resoponse Waiting for someone to respond. question Further information is requested labels Jan 4, 2023
@kaidrumm
Copy link

I was also looking for this, but for me the problem is that week with non_month days still have cell space remained. Calendar doesn't dynamically change size if month weeks are 5 instead of 6.

We would also like to be able to reduce the number of weeks shown (from 6 to 5 or 4).

@PRBaraiya PRBaraiya added priority:2 Bug/Enhancement with priority level 2. and removed priority:3 Bug/Enhancement with priority level 3. labels Feb 16, 2023
@ParthBaraiya ParthBaraiya added priority:1 Bug/Enhancement with highest priority. and removed priority:2 Bug/Enhancement with priority level 2. labels May 6, 2023
@jaiminrana05 jaiminrana05 added the in progress This label defines issues that are in progress. label Aug 11, 2023
@apurva010 apurva010 linked a pull request May 8, 2024 that will close this issue
7 tasks
@apurva010
Copy link
Collaborator

Closing this issue as it got merged in #362.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in progress This label defines issues that are in progress. priority:1 Bug/Enhancement with highest priority.
Projects
None yet
7 participants