calendar_date_picker2 icon indicating copy to clipboard operation
calendar_date_picker2 copied to clipboard

[Feature] show week number

Open Johannes5000 opened this issue 2 years ago • 4 comments
trafficstars

Greetings, is it possible to display the current week number next to the row?

Johannes5000 avatar Mar 22 '23 11:03 Johannes5000

Hi this is not directly supported by this package. You will probably need to fork the code and customise it yourself.

Or there is a workaround I am not too sure but you can try is you can use dayBuilder and tweak the day widget and add the week number to your desired places.

theideasaler avatar Mar 22 '23 22:03 theideasaler

I was just thinking the same thing. This would be a great feature to have. I think the issue with using the dayBuilder is that you would override a date instead of say adding a new column that displays the week number right? @theideasaler

Cheers

alejandrobalderas avatar Mar 30 '23 16:03 alejandrobalderas

@alejandrobalderas That's true. In this case probably another solution is to wrap CalendarDatePicker2 inside a custom widget and place a separate Column beside it, update the week number in the column by listening to onDisplayedMonthChanged

Last solution will be fork this repo and add the custom logics into calendar_date_picker2.dart.

theideasaler avatar Mar 31 '23 00:03 theideasaler

I need this too

tomasbaran avatar Oct 28 '23 00:10 tomasbaran