Skip to content
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

Days header sometimes disappear #73

Closed
TatsuUkraine opened this issue Jun 9, 2021 · 5 comments
Closed

Days header sometimes disappear #73

TatsuUkraine opened this issue Jun 9, 2021 · 5 comments
Labels
T: Fix Type: :bug: Bug Fixes

Comments

@TatsuUkraine
Copy link
Contributor

I don't know what is a clear way to reproduce it, since it happens time to time on a week view somewhere around Feb 2021.

Describe the bug
Days header disappear during the swipe within the Feb 2021

TimetableConfig<BasicEvent>(
            eventProvider: (interval) {
              return [
                BasicEvent(
                  title: interval.start.toString(),
                  id: interval.start.toString(),
                  start: interval.start.atStartOfDay.add(const Duration(hours: 1)),
                  end: interval.start.atStartOfDay.add(const Duration(hours: 2)),
                  backgroundColor: Colors.red,
                ),
                BasicEvent(
                  title: interval.end.toString(),
                  id: interval.end.toString(),
                  start: interval.end.atStartOfDay.add(const Duration(hours: 1)),
                  end: interval.end.atStartOfDay.add(const Duration(hours: 2)),
                  backgroundColor: Colors.blue,
                ),
              ];
            },
            eventBuilder: (context,  event) => Container(
              color: event.backgroundColor,
            ),
            child: MultiDateTimetable<BasicEvent>(),
          ),

Screenshots

Don't look at the header) it's actually Feb, not Jun)

header-issue

Environment:

  • Package version: 1.0.0-alpha.0
@TatsuUkraine TatsuUkraine added the T: Fix Type: :bug: Bug Fixes label Jun 9, 2021
@JonasWanke
Copy link
Owner

The DatePageView that contains the DateHeader widgets internally stores the heights of its inner widgets in order to shrink-wrap to their heights. I'd guess that either the widgets temporarily report a height of zero for some reason, or that entries are removed from the internal cache too eagerly. But so far, I have no clue why either of them could occur and have not been able to reproduce this issue myself either.

@TatsuUkraine
Copy link
Contributor Author

Yeah, I don't have a clear reproduction steps either. But it happens on real device in profile mode and on emulator in debug mode. Strange thing also that it happens also on a different weeks. First time I noticed it it was on last week of Feb, after some time it started to appear on one week before etc

@TatsuUkraine
Copy link
Contributor Author

Also in some cases it headers was hiding during the scroll and then appear when scroll ends, and sometimes header was hidden permanently on following 2 weeks etc. So quite strange behavior

@TatsuUkraine
Copy link
Contributor Author

RPReplay_Final1623256774.MP4

@TatsuUkraine
Copy link
Contributor Author

can't reproduce it anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Fix Type: :bug: Bug Fixes
Projects
None yet
Development

No branches or pull requests

2 participants