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

Remove default day number from cell #883

Open
nknr opened this issue Jun 19, 2024 · 1 comment
Open

Remove default day number from cell #883

nknr opened this issue Jun 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nknr
Copy link

nknr commented Jun 19, 2024

Is your feature request related to a problem? Please describe.
I am not able to remove default cell day value

Describe the solution you'd like

CalendarBuilders(markerBuilder: (context, day, events) => _buildMonthRangeCell(day))
@nknr nknr added the enhancement New feature or request label Jun 19, 2024
@ltoenjes
Copy link

ltoenjes commented Jul 21, 2024

I'm not quite sure what you're asking here. You want to remove the day of month number from the cells? If so, you'd have to create custom builders for all the different cell types. This setup for example eliminates all numbers from the calendar. (Not sure why you would wanna do that though)

CalendarBuilders(
          defaultBuilder: (context, day, focusedDay) {
            return SizedBox();
          },
          todayBuilder: (context, day, focusedDay) {
            return SizedBox();
          },
          selectedBuilder: (context, day, focusedDay) {
            return SizedBox();
          },
          disabledBuilder: (context, day, focusedDay) {
            return SizedBox();
          },
          outsideBuilder: (context, day, focusedDay) {
            return SizedBox();
          },
        );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants