Skip to content

Commit

Permalink
Remove superfluous num type arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Jan 24, 2023
1 parent 763661e commit b2f06cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/src/components/week_indicator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,19 @@ class _RenderWeekIndicatorText extends RenderBox {

@override
double computeMinIntrinsicWidth(double height) =>
_labelPainters.map<num>((it) => it.width).min.toDouble();
_labelPainters.map((it) => it.width).min.toDouble();
@override
double computeMaxIntrinsicWidth(double height) {
final widths = _labelPainters.map<num>((it) => it.width);
final widths = _labelPainters.map((it) => it.width);
return (alwaysUseNarrowestVariant ? widths.min : widths.max).toDouble();
}

@override
double computeMinIntrinsicHeight(double width) =>
_labelPainters.map<num>((it) => it.height).min.toDouble();
_labelPainters.map((it) => it.height).min.toDouble();
@override
double computeMaxIntrinsicHeight(double width) {
final heights = _labelPainters.map<num>((it) => it.height);
final heights = _labelPainters.map((it) => it.height);
return (alwaysUseNarrowestVariant ? heights.min : heights.max).toDouble();
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/date/date_page_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class _DatePageViewState extends State<DatePageView> {
double maxHeightFrom(int page) {
return page
.rangeTo(page + pageValue.visibleDayCount - 1)
.map<num>((it) => _heights[it] ?? 0)
.map((it) => _heights[it] ?? 0)
.max
.toDouble();
}
Expand Down

0 comments on commit b2f06cf

Please sign in to comment.