flutter_calendar_view icon indicating copy to clipboard operation
flutter_calendar_view copied to clipboard

Min and Max Hours

Open david-melodica opened this issue 2 years ago • 6 comments

Hello,

I am really enjoying working with this control!

However, it seems like there is no option to set min and max hours in a day like how I can set min and max days.

I also cannot seem to figure out a workaround for this, please help

Best image

David

david-melodica avatar Jul 12 '23 15:07 david-melodica

Hi,@ david-melodica Can you please elaborate more on what is the issue?

jaiminrana05 avatar Aug 03 '23 07:08 jaiminrana05

Hi,@ david-melodica Can you please elaborate more on what is the issue?

Hello, sure, I would like to set min and max hours in a dayview so that it does not show all hours of the day.

for example I only want to see the time slots from 8am to 9pm, not from midnight to midnight

Is that clear enough?

david-melodica avatar Aug 03 '23 07:08 david-melodica

Hey, I'm having the same problem than @david-melodica, it would definitely be a great idea to integrate that.

Mael-Kehl avatar Aug 04 '23 09:08 Mael-Kehl

Hey, I'm having the same problem than @david-melodica, it would definitely be a great idea to integrate that.

Hey Mael, I didnt get much of a response so I ended up making my own calendar control

david-melodica avatar Aug 07 '23 10:08 david-melodica

Because I need this feature to be implemented on the project I'm working on, I've begin to code a solution including a "startHour" parameter to WeekView and DayView constructors. I'll create a PR once work is done so you guys can take a look and why not add it to the next version.

Mael-Kehl avatar Aug 08 '23 13:08 Mael-Kehl

Hello, @Mael-Kehl We are grateful for any PRs submitted by developers.

jaiminrana05 avatar Aug 09 '23 05:08 jaiminrana05