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

_TimeIndicatorsLayout does not meet its constraints. #158

Open
tauqeerkhattak opened this issue Dec 28, 2023 · 0 comments
Open

_TimeIndicatorsLayout does not meet its constraints. #158

tauqeerkhattak opened this issue Dec 28, 2023 · 0 comments
Labels
T: Fix Type: :bug: Bug Fixes

Comments

@tauqeerkhattak
Copy link

On using timetable: ^1.0.0-alpha.13 with flutter version 3.16.4, I am getting the following exception:

_TimeIndicatorsLayout does not meet its constraints. Constraints: BoxConstraints(w=30.0, h=1341.4) Size: Size(29.9, 1341.4) If you are not writing your own RenderBox subclass, then this is not your fault. Contact support: https://github.com/flutter/flutter/issues/new?template=2_bug.yml

Code:

SizedBox(
  width: 46, 
  child: TimeZoom( 
      child: Padding( 
        padding: const EdgeInsets.symmetric(horizontal: 8), 
        child: TimeIndicators.hours(
          firstHour: 0,
          lastHour: 24, 
          alignFirstAndLastLabelsInside: true, 
          styleProvider: TimetableTheme.of(context)?.timeIndicatorStyleProvider, 
        ), 
      ), 
  ), 
);
@tauqeerkhattak tauqeerkhattak added the T: Fix Type: :bug: Bug Fixes label Dec 28, 2023
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

1 participant