Skip to content

Commit

Permalink
Honor maxWidth in WeekIndicator
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Jan 24, 2023
1 parent b2f06cf commit 8e0315c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/src/components/week_indicator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,12 @@ class _RenderWeekIndicatorText extends RenderBox {
.firstOrNull ??
narrowestPainter();
}
size = _labelPainter.size;
size = constraints.constrain(_labelPainter.size);
}

@override
void paint(PaintingContext context, Offset offset) {
_labelPainter.paint(context.canvas, offset);
}
void paint(PaintingContext context, Offset offset) =>
_labelPainter.paint(context.canvas, offset);
}

/// Defines visual properties for [WeekIndicator].
Expand Down

0 comments on commit 8e0315c

Please sign in to comment.