aleksanderwozniak / table_calendar

Highly customizable, feature-packed calendar widget for Flutter
Apache License 2.0
1.84k stars 1k forks source link

Remove default day number from cell #883

Open nknr opened 5 months ago

nknr commented 5 months ago

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))
ltoenjes commented 4 months ago

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();
          },
        );