-
Notifications
You must be signed in to change notification settings - Fork 270
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
Is there a way to stack events and not offset them ? #290
Comments
I am currently having the same problem with this package. My first guess would be to try and make it so that event are built with an end date 1 min or 1 second before the actual date. I don't know how to do that in the EventBuilder yet. |
@Eretik33-176 that's not really a legit "fix" |
anyone ? |
OK will I did some digging and in the MergeEventArranger code seems to be where it decides if they overlap and simply having the same start and end time seems to be a reason to overlap so it slides them ..... |
@stephenhauck That is the default behavior of that arranger. We will add a flag in those arrangers to decide whether these kinds of events should stack or offset. |
We will need that flags in |
When it's building the layout it throws errors if you use midnight as a start or end time too ... Any suggestions on how to deal with that ? |
@stephenhauck That's because for start and end time, event arrangers will not consider the date i.e, year, month and day. So, here, end time 00:00:00 occures before start time 23:00:00. That's why it's giving the error. Please refer issue #293 for more updates. As for the work around, you can set end time to, |
… overlapping events or not. - Fixes issue #290
… overlapping events or not. - Fixes issue #290
… overlapping events or not. - Fixes issue #290
I'm here because I would like to reopen the issue. As you can see on this screenshot, the events are arranged and all looks good. But on this screenshot, where have a big (yellow) event on the left, the arranger does not work properly. I expect that the dark ones on the right are not offsetted @ParthBaraiya @PRBaraiya Can we please reopen this and take a look? |
@DonnyDevIT Not sure if this will work, but can you try providing eventArranger argument. Here is an example, DayView(
eventArranger: SideEventArranger(
includeEdges: true,
),
); |
Hi @PRBaraiya No does not work, it works fine until I put the big yellow on the left, maybe something that package developers does not had in mind |
Need to reproduce this issue with exact durations as above events. |
Ok, tell me if you work on something or need something |
Any news? |
Sorry, any updates? im getting some trouble :) @PRBaraiya |
Hi @DonnyDevIT , I'm working on this and will update the code as soon as possible. |
Okay thanks! I will wait with no reply then :) @PRBaraiya |
Hi @DonnyDevIT I tried to replicate your scenario. Does below screenshot shows the output you are expecting? I tried to replicate the event data from the screen shot you shared. |
@DonnyDevIT Please ignore the UI of the tile. I'm just trying to show the arrangement of the tiles. |
@ParthBaraiya Yes, your screenshot is right, should be like this |
We want to stack these and not offset them unless the times overlap ...
The text was updated successfully, but these errors were encountered: