Skip to content

Week view event that spans over multiple days is rendered incorrectly #42

Description

@luistrivelatto

Describe the bug
A week view event that spans over multiple days is only shown in the days of the start and end date of the event.

To Reproduce
Steps to reproduce the behavior:

  1. Create the following week view widget:
      WeekView(
        dates: [DateTime(2020, 1, 1), DateTime(2020, 1, 2), DateTime(2020, 1, 3)],
        style: const WeekViewStyle(
          hourRowHeight: 30.0,
          dayViewWidth: 90.0,
        ),
        events: [
          FlutterWeekViewEvent(
            title: 'An event 1',
            description: 'A description 1',
            start: DateTime(2020, 1, 1, 20),
            end: DateTime(2020, 1, 3, 6),
          ),
        ],
      ),
  1. Check the widget's UI to see that it is not rendered on 2020-01-02.

Expected behavior
There should be an event box covering the full day of 2020-01-02.

Screenshots
week_view_multi_day_event

Smartphone (please complete the following information):
Device: Galaxy A8
OS: Android 9

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions