Skip to content

_TimeIndicatorsLayout does not meet its constraints. #158

Description

@tauqeerkhattak

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, 
        ), 
      ), 
  ), 
);

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T: FixType: :bug: Bug Fixes

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions